199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dhrider

[B]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') VALUES('corey','gibson','Cambodia','ab','bragg creek','t0l0k0','corey_g' at line 1[/B] $sql = mysql_query("INSERT INTO myMembers (firstname, lastname, country, province, city, postal_code, email, acp_reg, rank_medical, rank_fire, nok_firstname, nok_lastname, nok_country, nok_province, …

Member Avatar for phpbeginners
0
141
Member Avatar for Murderous Mouse

Hey guys, I've just been presented with a challenge, of sorts, and I am wondering what language I should use in order to make a piece of software. The only specifications which the language will need to have are: [List] [*] Must be relatively common (Not some small language that …

Member Avatar for Murderous Mouse
0
117
Member Avatar for hassedo

hi i am new to c/c++ i am making a program for a project in class i have only started the program it still has no content, only structures however when i compiled and run it in C the first printf wont display in the .exe there are no errors …

Member Avatar for hassedo
0
94
Member Avatar for kele1

i'm trying to write a doubly linked list code but i'm having a lot of errors please help me identify what my problem it please thank you in advance[CODE] #include <stdio.h> #include <stdlib.h> struct listNode { char data; struct listNode *nextPtr; //struct listNode *prevPtr; }; typedef struct listNode LISTNODE; typedef …

Member Avatar for mrnutty
0
145
Member Avatar for tgreiner

I am having a problem with overloading an operator within a class structure. Below is the program that illustrates my problem. It defines a class Matrix, creates two matrices and multiplies them. I created to multiplication functions. The first is a straight function, the second uses the overloaded * operator. …

Member Avatar for Dave Sinkula
0
2K
Member Avatar for maverick405

I am working for this program all I want to display the users all attempted score and user gets only four chance to take quiz, the code below works fine the only problem is that 1. I dont want to display " Your Previous Score" for the first attempt, as …

Member Avatar for valtikz
0
157
Member Avatar for Judgment

I require a program that will remove all trailing whitespace (any spaces that occur at the end of a line) from a text file. It should do something like: Space Stripper Enter the name of the file to be stripped: news.txt Any help would be gladly appreciated. I'm also seeking …

Member Avatar for Namibnat
0
184
Member Avatar for simonfoley

Hi there Just started an IT course recently, and although flying with HTML and other disciplines, I'm having trouble with some C++ syntax. I have a problem with a short piece of code I have to write, which has to read input from the keyboard for 5 fictional employees, each …

Member Avatar for simonfoley
0
234
Member Avatar for coolfriends

Hey everyone, I am working on this integer decomposition problem that I cant figure out. I would really apperciate your help on this. Here is the problem: It is known that every integer n greater than 17 may be written as the sum of three distinct integers, each greater than …

Member Avatar for ssharish2005
0
120
Member Avatar for jennwenn25

Hello, Been trying to work on this tic tac toe game and I can't seem to figure out how to post the moves to the board. Everything as I have it now seems ok with the compilier but I just need help with that part. Let me know . . …

Member Avatar for Clinton Portis
0
217
Member Avatar for Philip435

Hey I need some help with my java game Im making. I wont to have an menu with 4 options, startgame, highscore, option and quit. They quit button is easy I just setVisible(false) but when i click on the other buttons I wont to remove the buttons and include new …

Member Avatar for Ezzaral
0
116
Member Avatar for merse

If I want to define what is a double -> double function pointer I use: [CODE]typedef double (*double_fp1)(double);[/CODE] But what if I would like to distinguish const double -> double it is possible? And the above definition consists the const double -> duble function?

Member Avatar for mrnutty
0
104
Member Avatar for PDB1982

Can anyone tell me why I am getting this message: "...error C2296: '%': illegal, left operand has type 'double' " here is my code: [code] double Q1median(ifstream& students, string studentid[60], string fname[60], string lname[60], int Q1[60], int Q2[60], int Q3[60], int MidTerm[60], int Q4[60], int Q5[60], int Q6[60], int Final[60],int …

Member Avatar for DavidRead
0
120
Member Avatar for zobadof
Member Avatar for mrnutty
0
97
Member Avatar for p3rsia

hi i tried to do this q but i stuck in the middle of writing codes Write a program that creates an array dynamically whose pointer must not change, initialize the array to random values between 0 and n (inclusive) using rand () where n is a value entered by …

Member Avatar for Clinton Portis
0
164
Member Avatar for nerdthon123

To All Daniweb users, I have just started the programming trail of learning, i recently got courses from E learning center on how to use C++. The first Code (the hello world project) is where I'm having a problem. On Visual Basic 2010 Beta2 which is the only one that …

Member Avatar for jonsca
0
127
Member Avatar for MatrixClaw

Hello, this is my first post here, but I'm having some trouble figuring out what I messed up on my code :( I'm making a Javascript game of Hangman for one of my classes and I originally had the input as a text box where you physically type in the …

Member Avatar for Airshow
0
128
Member Avatar for leegeorg07

Hi, I am working on a WP theme with a friend and I'm trying to figure out how to update the files on a regular basis. I will have a server that will be on at certain times (when an update is available) and I want a php file that …

Member Avatar for almostbob
0
111
Member Avatar for smoothe19

welll it is just a program that generates 2 random numbers for the user...the user inputs their answer and if it is correct it adds 1pt to their score. But then it is also supposed to generate a new problem, but I do not know how to code that in. …

Member Avatar for smoothe19
0
135
Member Avatar for trzypak

so i was supose to create a software for my class that converts the 24 hour notation to 12, but now i got really lost with it i used the A symbol to display am and the P symbol to display pm heres what i have so far but i …

Member Avatar for jonsca
0
117
Member Avatar for discovery-power

Hi All, I recently made the move from Windows to Mandriva Linux 2010, in Windows I used an IDE to write my code then build my projects, in Linux I cant find a suitable IDE im really struggling to build my projects. Now I can write my projects in kwrite …

Member Avatar for discovery-power
0
118
Member Avatar for jlego

in vb.net 2008, i have no idea what this means error: the item "obj\debug\associateassist.frmdbsetup.resources" was specified more than once in the "resourceS" parameter. duplicate items are not support by the "resources" parameter. does anyone know what might cause this error / how to go about fixing it.

Member Avatar for jlego
0
123
Member Avatar for RayvenHawk

Ok I have an assignment that requires me to create 3 macros to do 3 different function. I have the first one completed but the 2nd two are giving me some trouble. #2) Write a macro that takes in 2 32-bit integers and divides the first from the second and …

Member Avatar for RayvenHawk
0
132
Member Avatar for wingers1290

Hi, this is the final step of my program, so far I've set a button to change the default save location and now the last step is to be able to click on the serialized file and have it open in my form. The problem is I don't know how …

Member Avatar for wingers1290
0
201
Member Avatar for starboy

Hi, everybody. i want to get file name from html file input form using jsp. my codes are followed as: [CODE] <table> <tr> <td > <input type="file" id="csvfilebrowse" name="csvfilebrowse" value="" width="400px" style="width:400px; height:20px" onChange="getcsvfilename();"> <script type="text/javascript"> // <![CDATA[ function getcsvfilename() { var v_csvfileName = ''; v_csvfileName += document.getElementById('csvfilebrowse').value; getCSVFileContents(v_csvfileName); }; …

Member Avatar for peter_budo
0
159
Member Avatar for Puddles

I am attempting to write a program that interfaces with Command prompt (simple, bring up a tasklist, user enters the program they want to get rid of, and then the computer does the rest), I already have been able to interface and bring up a tasklist, the code compiles with …

Member Avatar for Puddles
0
236
Member Avatar for Ryveris

I know there have been posts in the past where some were asking about "how to make a zodiac calculator," and I kind of have the same question, but I've done the research and wrote most of the code out, so it's nothing like that. I didn't quite understand how …

Member Avatar for Ryveris
0
151
Member Avatar for paulbasler

I am working on a social network site with php and mysql. I was wondering which way would be the most efficient way of uploading the users pics to the server into a file folder or directly into the database? Also I was wondering would it be easier to save …

Member Avatar for emhmk1
0
91
Member Avatar for xavier666

[INDENT]Hello everybody, I just started learning C and decided to join this site. But as soon as I posted some of my code snippets here, immediately I got a stream of insults (thanks to [icode]conio.h[/icode]). But it's not my fault, I've grown on [icode]clrscr()[/icode] and [icode]getch()[/icode] (due to my experience …

Member Avatar for xavier666
0
133
Member Avatar for andrewktmeikle

Hello, I'm having a slight problem with my code. The task is to create an indexing program, similar to the ones the google uses. The problem i'm having is that we have to remove the common ending from the words left after the removal of stop_words(which is a list variable …

Member Avatar for andrewktmeikle
0
2K
Member Avatar for tkud

Hey everyone, I'm having this problem with the aforementioned API. Here is the code to initialize the common controls i want to use..(commctrl.h is already included in my program) [CODE] INITCOMMONCONTROLSEX icex; icex.dwSize=sizeof(INITCOMMONCONTROLSEX); icex.dwICC=ICC_BAR_CLASSES; InitCommonControlsEx(&icex); [/CODE] However, when I try to build , it gives me this error: [I] 1>tkud.obj …

Member Avatar for tkud
0
3K
Member Avatar for zobadof

I have learnt: Hello World, Input, Operators, Square of a number, Making decisions and Repeated question. I don't know what would be best; either to revise on that, or move onto something else. I would like to know what would be the best idea for me next. Thanks, Zobadof

Member Avatar for zobadof
0
53
Member Avatar for zobadof

Sorry in advance! I did solved thread before I checked if the code somebody said worked. It turned out they didn't help much. The problem is MattyRobot gave me code to open a new window. Now it opens with CMD to; I only wanted the window. I will give you …

Member Avatar for zobadof
0
131
Member Avatar for jas2010

I want Twice binding datagrid but get following error: Cannot bind to the property or column users on the DataSource

Member Avatar for jas2010
0
151
Member Avatar for benk1

Hi, I'm creating a simple form where you select a company name from a dropdown list, and you can then update the values associated with this using textboxes and a submit button. The dropdown works fine (it shows all the companies in the database) and the submit button submits data …

Member Avatar for benk1
0
119
Member Avatar for C++ Beginner

When I run the program it only prints out the numbers entered into the array but it will not print out the name of the array. Can anyone assist me on why it is not working? Example: The amount each salsa sold are: 4 The amount each salsa sold are: …

Member Avatar for zobadof
0
75
Member Avatar for merse

It is possible to restrict template parameter? [CODE]template <class T> class myclass { ... };[/CODE] For example I want that T might be int double or my own defined complex but nothing else!

Member Avatar for mrnutty
0
246
Member Avatar for es cape85

hi guys! plz help with the code in C which can calculate the fectorial of 500.

Member Avatar for jephthah
0
98
Member Avatar for DaveCachia

Hi all! I have dug through the heaping amounts of mod_rewrite threads here and elsewhere and have come to no end! I am wondering if this is not working because: A) 1&1 Hosting is garbage. B) Its on a subdomain. Here is my code. [CODE]RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?username=$1 RewriteRule …

Member Avatar for diafol
0
198
Member Avatar for abhipro

I have a Windows Application which contains functions for Encrypt/Decrypt which is working fine when both the functions are put together as a single code. Now, I wanted to call encrypt and decrypt functions independently of each other, thus, I split the code temporarily in say, function1() and function2() for …

Member Avatar for gusano79
0
110
Member Avatar for smart.java6

Hi! Dear Friends.. Can you please help me to answer : Can mutation testing be successfully used in an industrial environment? Thanks!

Member Avatar for gusano79
0
78
Member Avatar for new programer

hello all I'm trying to do a concatenation function I do not want to you use the strings property where we can add strings, I need to add two strings and save them in one string without the use of addition "+" i have three variables title , first_name, last_name …

Member Avatar for new programer
0
157
Member Avatar for weasel7711

This is my first time really using HTML, Javascript and PHP. This is part of a prototype for a project for my SW Eng. course. The problem I am having is that the form is not going through the validation. The user is supposed to be able to search by …

Member Avatar for Airshow
0
172
Member Avatar for merse

I have a very simple code and I don't understad it's result. I think, this have to print "OK" but does not! [CODE] #include<iostream> #include<math.h> class real { double value; double error; public: real(double,double); friend bool operator==(const real&,const double); }; real::real(double val, double err) : value(val), error(fabs(err)) {} bool operator==(const …

Member Avatar for merse
0
101
Member Avatar for Nagarajan.M

please tell me the reason for the error.[code]new Double("25D"); // Ok new Long("25L"); // Error[/code]

Member Avatar for majestic0110
0
80
Member Avatar for therio7

Hi everyone, I hope someone can help me, here's my problem: I have a php script that retreive photos from a mysql db (and place it on my page into a loop in the right album section), I dont know if you understand what I mean but if you have …

Member Avatar for therio7
0
216
Member Avatar for leahmarie

Hello guys, I just want to ask for a refresher tutorial on VB 6, Because I'm gonna need it to jog my memory in programming in VB 6 platform. Thanks for any reply in advance.

Member Avatar for 4ukh
0
281
Member Avatar for johndoe444

[CODE] typedef struct tag_linked_list linked_list; struct tag_linked_list { int value; linked_list* next; }; typedef struct tag_list list; struct tag_list { int size; linked_list* data; }; void list_insert(list* lst, int x) { printf("lst->data %p\n",lst->data); lst->size++; // create a new node linked_list node; node.value = x; node.next = lst->data; // make it …

Member Avatar for johndoe444
0
105
Member Avatar for Dan08

hey everyone, i am writting an app with tkinter, well ive tried quite alot of different ways but i couldnt find the solution for my problem. So, in that window there is time and i need it to constantly change, like every second. Any ideas? Thanks Dan08

Member Avatar for Dan08
0
22K
Member Avatar for merse

[CODE]#include<iostream> #include<math.h> class real { double value; double error; public: real(const double,const double); double get_value(); double get_error(); friend bool operator<=(const real&,const double); }; real::real(const double val, const double err) : value(val), error(fabs(err)) {} double real::get_value() { return value; } double real::get_error() { return error; } bool operator<=(const real& x1, const …

Member Avatar for Narue
0
116

The End.