64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for raajsj

Hi all, i am developing web application in asp.net backend MS-Sql.<br/> i have to retrieve a particular table values for example table name "costomer" and its fields are "c_id,c_name,c_contactno" like that and when i retrieve this values, it should be bind the checkbox for UI. now i've code for generate …

Member Avatar for raajsj
0
2K
Member Avatar for thearts.beach

I have this line <INPUT name=c value="<?php echo href="http://',$data2['c'],' " ',$data2['c'],' ?>"> &nbsp; and it is giving out this error Parse error: syntax error, unexpected '=', expecting ',' or ';' in /home/a3024539/public_html/bigtestone1.php on line 21 The output I am looking for is the text from the table to become a …

Member Avatar for thearts.beach
0
300
Member Avatar for Banfa

Given this header // header.h #include <string> namespace company { namespace module { class ProjectConstants { public: static const int CONSTANT1; static const std::string CONSTANT2; }; } } and this source file // header.cpp #include "header.h" using company::module::ProjectConstants; const int ProjectConstants::CONSTANT1 = 10; const std::string ProjectConstants::CONSTANT2("Hello World"); Are ProjectConstants::CONSTANT1 and …

Member Avatar for mike_2000_17
0
232
Member Avatar for OsaMasw

hey there I have problem in running som function in php I've created simple chat system , I want to delete every message create 1 hour ago or 30 minutes ago I've used mysql_query("DELETE FROM `chat` WHERE `cht_date` < DATE_SUB(NOW(), INTERVAL 1 MINUTE)"); my "cht_date" type in database is "TIME" …

Member Avatar for OsaMasw
0
302
Member Avatar for xxmp

When the user finish with the order and pay then i want to create a pdf with the order receipt with email. How i can create this pdf online and sent it to the user? Thank you very much

Member Avatar for peter_budo
0
284
Member Avatar for official.DJ.cabo

**I Get error like this when i start the host.** <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.watermarkinput.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') { } else { $.ajax({ type: "POST", url: "search.php", data: dataString, cache: false, success: function(html) { $("#display").html(html).show(); } }); …

Member Avatar for dinhunzvi
0
340
Member Avatar for m_ishwar

Hey guys is there a funtion in python that enables to output values to a bin files? Just like storing strings in .txt files, can we store hexadecimal values directly into .bin files? I am working using Python 2.7.3

Member Avatar for m_ishwar
0
316
Member Avatar for PratikM

Sup guys, Its been a while since I've been on this but I have a question regarding If statements and strings. I am trying to create a program and I need the user input (yes/no) so i am using strings for that. The problem that I'm having is that whenever …

Member Avatar for JeffGrigg
0
130
Member Avatar for IsaacMessi10

Hey guys so how can I actually make a Tab Control using [this](https://docs.google.com/file/d/0Bx-ETTSBtAAfUFM0R2tBUDFpQUE/edit?usp=sharing) image as an active tab and [this](https://docs.google.com/file/d/0Bx-ETTSBtAAfRElBUnkyWkphMkk/edit?usp=sharing) one as an inactive tab. I've already read something about Drawing Tabs but I didn't quite understand it. Thanks.

Member Avatar for IsaacMessi10
0
476
Member Avatar for sanbhu2105

hi guys, i have 2 tables - tblproduct and tblretprod. i insert my product details to tbl product with prod_id being auto increment other fields are prod_name, prod_brand, prod_desc, prod_photo, cat, subcat i hv another table tblretprod with fields id, user_id, prod_id, prod_price i can add my products successfully i …

Member Avatar for sanbhu2105
0
335
Member Avatar for phorce

I have not visited PHP/MYSQLI for some time now, and, need some guidance on the following problem: I'm trying to retrive all the data from the given week and just in that week. My table looks like the following: id int(11) type varchar(255) week datetime And as a test data …

Member Avatar for phorce
0
187
Member Avatar for VikashS_

Greetings everyone, I am just starting out with C and I am stuck with a question in my book. It says the following: x=1; y=1; if(n>0) x=x+1; y=y-1; printf("%d%d"x,y); What will be the values of x and y if n assumes a value of a) 1 and b) 0. Now …

Member Avatar for VikashS_
0
136
Member Avatar for piczim

I would liketo know how to set the number of decimal places in the below code to 2. #include <stdio.h> #include <math.h> #include <string.h> int main() { int a =2; int b =4; int c =6; int d =8; int currencyOption; printf("\n *********************************************"); printf("\n *********************************************"); printf("\n ** Enter the number …

Member Avatar for ddanbe
0
170
Member Avatar for showman13

I have a question about carrying an entire html table from one page to another in a PHP variable. I would have thought that I could do it, but it doesn't seem to want to work It is a shopping cart displayed in a table, and when they accept the …

Member Avatar for showman13
0
171
Member Avatar for garyjohnson

Hello, I have a mysql query $query = "SELECT * FROM comments WHERE commenter_username IN (" . join(',', $list) . ") Or Number IN (" . join(',', $list) . ") ORDER BY comment_id DESC"; I want the query to select one row, the row with the highest id. Then store …

Member Avatar for Atli
0
302
Member Avatar for Ancient Dragon

I installed WampServer on my Windows 7 Ultilate computer the other day and WordPress yesterday. I attempted to test WP registration in my web site but I never received the registration confirmation email. Is this not possible on localhost? If it is how do I go about getting email to …

Member Avatar for Ancient Dragon
0
323
Member Avatar for adil.ghori

Hello ! I have a script, that i m running on visual C++ compiler everything is alright with it, working properly but in the result, I can see on one digit after decimal, not 2, i wanna display two digit i.e 31.02 ; Code is; # include <iostream.h> # include …

Member Avatar for adil.ghori
0
387
Member Avatar for eldiablo1121

Hello, First of all I want to thank all the help with my posts. I have a program where I have to convert a phrase from lower case to upper case, but I cannot use any of the toupper() isupper() functions and vice versa. I think I almost got it, …

Member Avatar for eldiablo1121
0
2K
Member Avatar for eldiablo1121

Hello, I have a program assignment that I have no idea what it's asking for honestly. I've tried to read all I can about it, but I do not understand. I tried my hand at some code, but it's only returning the address of course. Here is my attempted code: …

Member Avatar for eldiablo1121
0
425
Member Avatar for joshl_1995

Hello Community, I'm trying to make a way to post data to my php file located on my website, I tried it on my Windows 8 laptop; it worked fine, then tried it out on my Windows 7 laptop and for some reason it won't work. I have gone through …

0
192
Member Avatar for Pallab.Bhk

Hey I have dictionary like following one dicts = {'met_293': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_394': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]'],'met_309': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_387': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]']} I want to remove keys which have same value like 'met_293' and 'met_309' those two keys have same value at 12th position which is '[KG]EHY' so i want my dictionary like this {'met_293': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_394': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]']} any …

Member Avatar for Pallab.Bhk
0
488
Member Avatar for Vixion

Hello there, I want to get all checked checkbox on the form. I always wasting my time to checking it one by one. There is a way to do this? Best regards vixion

Member Avatar for star.tamy.7
0
581
Member Avatar for murali2489

Hi All, I have created a Class named Stock and have declared three Constructor . First constructor with no parameter, second constructor with three parameter, third with Two parameter. When I call my constructor inside a System.out.println(constructor); , it should display the variable Values right ? . but instead it …

Member Avatar for murali2489
0
198
Member Avatar for christinetom

Would anyone know where I could get a really extensive coverage of pre-processor directives? There are plenty of websites but the information is limited. Was hoping there was a complete source like a book out there. Thanks everyone.

Member Avatar for rubberman
0
190
Member Avatar for Eternal Newbie

Is there a way to set a window to the top on screen and set focus on it? I'm having a menu in VB.Net calling a bunch of .exe. Everytime a window apears, it runs itself to the top on screen. But there was a window, problem-able one, with some …

Member Avatar for Eternal Newbie
0
14K
Member Avatar for pooh1234qwerty

#include<stdio.h> #define CH char*; int main(){ CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } here the o/p is 4 1. why isnt b also of type char*..??

Member Avatar for JasonHippy
0
178
Member Avatar for modaresi

Right now, this program asks the user to enter the input infile and outfile file names. Then it gives an error if it can't open the file. If it can open infile, it reads the first value and consider that as the array size. After that it continues with other …

Member Avatar for Ancient Dragon
0
418
Member Avatar for somjit{}

[this](http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TextComponentDemoProject/src/components/TextComponentDemo.java) is the code i was looking at.Its about how to use JTextPane and related swing text Components along with actions and keymaps. my question is that in this part textPane = new JTextPane(); textPane.setCaretPosition(0); textPane.setMargin(new Insets(5, 5, 5, 5)); StyledDocument styledDoc = textPane.getStyledDocument(); if (styledDoc instanceof AbstractDocument) { doc …

Member Avatar for somjit{}
0
222
Member Avatar for kindofsudden

Okay, I'm pulling my hair out. I'm getting NO error on the following code: Dim cmd As New OleDb.OleDbCommand("CREATE TABLE [" + empTableName + "] ([ID] DOUBLE, " & _ "[LnameFname] TEXT(255), " & _ "[Location] TEXT(255), " & _ "[SalaryOld] DOUBLE, " & _ "[FtePercentage] DOUBLE, " & _ …

Member Avatar for kindofsudden
0
252
Member Avatar for sanbhu2105

hello, am new here and new to php/mysql coding. i have 2 tables - tbl_prodstd and tbl_products tbl_prodstd - std_id, prod_name, prod_desc, prod_photo, prod_brand tbl_product - prod_id, std_id, prod_name, prod_brand, prod_desc, prod_price, cat, subcat, prod_photo i created 3 pages - add_prod.php, addprod.php, func.php the func.php displays prod_name and prod_brand as …

Member Avatar for sanbhu2105
0
334
Member Avatar for london-G

Hello, I am trying to send an email notification to a specific email address. I have a MySQL database in which I hold a product table. Product ID, ProductDescription and ProductQuantity. When the Quantity reaches "0" I want to send an automatic email saying that ProductID is out of stock. …

Member Avatar for paulkd
0
1K
Member Avatar for xjshiya

I have an array of checkbox that is populated with data from mysql database through a query. I can submit the value of the checked checkbox into a table from a database. But I want it to be saved according to the sequence the checkbox was checked by the user. …

Member Avatar for meharsaracomp
0
1K
Member Avatar for ron117

Hi experts, Im Ron and i have just recently started using VB and have written a small application for sending SMSes. Code: Imports System.Net Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) End Sub Private Sub Button1_Click(ByVal sender As Object, ByVal e As …

Member Avatar for ron117
0
288
Member Avatar for modaresi

Here is what I want this program to do: Be able to calculate mean, standard deviation, and median. Data should be sorted using insert sort first though. The program must be able to accept input from an input file and print a report to an output file. These files are …

Member Avatar for modaresi
0
533
Member Avatar for MichaelRyan

Hi folks...get into the wayback machine. :) I have a VB6 program I'm drastically modifying due to vendor API changes. This isn't my natural language, so I have to hack around every time I change things. Problem now is that the program won't end. I know it hits the END …

Member Avatar for GeekPlease
0
388
Member Avatar for ogsirus

Hi, I just finished making a program which displays all the files in a directory and lets me open them when selected. What I find is that I get every file found in the directory however not divided by sub-directory, is there a way i can do this showing it …

Member Avatar for ogsirus
0
212
Member Avatar for kilermage

[Click Here](http://www.upload.ee/image/3396246/newerror1.jpg) This is what I get when I run the code. Please help me fix this. EDIT: A lot has changed since 2008 so idk how to upload the image so I just made a link for it.

Member Avatar for kilermage
0
205
Member Avatar for MasterHacker110

I am trying to display the files and folders in a directory. And if the folders have a nother folder, display those contents also, and so on. I have this code but it isn't working the way I would like it to: #include <Windows.h> #include <string> #include <iostream> using namespace …

Member Avatar for Ancient Dragon
0
321
Member Avatar for Carlos_7

I need help with the following: I have a taxonomy named location. I have a list of countries using that taxonomy. I need to display the latest posts in a list with the flag and the post title. I created a folder inside theme folder with all country flags. For …

Member Avatar for diafol
0
191
Member Avatar for Mr.M

Hi DW I'm creating an ATM program and now I want to call the Dispensor to dispense the selected amount from the options provided. The main problem here is importing this `import atm.input.CashDispenser; ` the rest of the code is fine. here is the full code: import atm.input.CashDispenser; import java.util.Scanner; …

Member Avatar for Mr.M
0
144
Member Avatar for Jacklittle01

I am trying to make a system for my game in which the player's enemy has a decreasing amount of health. My shell output is here: Cannon Fired! Enemy Health= 8 Cannon 1 ammo = 10 The enemy fired back! Your health is now 12 Fire your choice of cannon! …

Member Avatar for Jacklittle01
0
150
Member Avatar for chint

I was using the following code to enter an image url at `TextBox1` and display it in `PictureBox1`.Everything worked. But suddenly the displayed image quality is lower than the original link. I've tried `PictureBox1.Load(TextBox1.Text)` and changing `SizeMode` still the same result. Imports System.Net Public Class Form1 Dim client As WebClient …

Member Avatar for chint
0
519
Member Avatar for Rahul47

I dont know what caused such a filenames and i am not able to remove these files. $ ls A????cd new????cat> >> A A????cd new????cat ????A Desktop Downloads file.sh menu.sh new new1.sh new.sh Pictures rename Videos A????cd new????cat |A A?echo A Documents even.sh filetest.sh Music new1.lst new.lst palindrome.sh Public Templates …

Member Avatar for Rahul47
0
209
Member Avatar for Rahul47

I was just writing a program for armstrong number till a given range. Something wrong with this code ? #include<stdio.h> #include<conio.h> void main() { int num,range,temp; int rem,sum=0; printf("Enter upper range: "); scanf("%d", &range); // Checking is a number is armstrong of not. printf("Armstrong are:"); for(num=10; num<=range; num++) { temp=num; …

Member Avatar for Rahul47
-1
199
Member Avatar for somjit{}

i saw the docs for both .. but found the terms a bit hard to get. i was hoping to get some simple answers here. thanks for your time :)

Member Avatar for somjit{}
0
327
Member Avatar for Learner010

how to create controls(like button , textbox) dynamically , i want to create these for 10 or may be more than 10 times . so i think i have to go through loops and probably i can do that but the problem is that how to create controls in runtime. …

Member Avatar for Learner010
0
415
Member Avatar for sobias

Hello there! Been a long time since I visited it DaniWeb :) I have a very wiered problem with my JSON data I'm getting using CURL. The returned json is 100% valid - you can copy and check it from here: http://pastebin.com/mdF1Vd7k When I try to do the following: `$result->data[0]->username; …

Member Avatar for jkon
0
249
Member Avatar for KamiNuvini

Hello, I'm really new to HTML/jquery so having some issues with submitting a form to jQuery and showing the results in a div. What I want -> Text box: Fill in text Button: Submit text as POST data with longurl=<text>, and display the result in a div (#shorturl) I have …

Member Avatar for KamiNuvini
0
3K
Member Avatar for roybillstrom

I am writing a picture viewer to reside in "Program Files" directory. I then right click on a picture file in any other directory and use "Open with" to optionally chose my viewer. I know how to do all this. But how do I send to my program the path …

Member Avatar for roybillstrom
0
93
Member Avatar for Abel21

Why an array of text boxes cannot be created in C# the same way as in VB.Net? In VB.Net I can do this, ant it works.

Member Avatar for Abel21
0
198

The End.