199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for triple_A

Hello all. I am making my first hello world program in C, and I have already run into issues. [CODE]#include <stdio.h> int main() { printf( "Hello World\n" ); getchar(); return 0; } [/CODE] I am getting two errors when I try to run this. C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\firstproject.c|4|multiple definition of `main'| and obj\Debug\main.o:C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\main.c|5|first …

Member Avatar for sergent
0
106
Member Avatar for jrotunda85

I want to add something to the script below that, prior to insert, check to see if the $CigarID already exists for the $UserID. If so, I want it to do an update and increase the $Quantity by whatever the user inputs. If the value doesn't exist, then insert the …

Member Avatar for jrotunda85
0
124
Member Avatar for ben.matthews18

Hi I need some help with this.. I have tables in sql with the following values; [B]Tbl name -[/B] members memberid [B]- primary key[/B] Username Password [B]Tbl name -[/B]Orders Orderid -[B]primary key[/B] memberid - [B]foreign key[/B] orderno I want to be able to grab the order numbers by the specific …

Member Avatar for Stefano Mtangoo
0
205
Member Avatar for WolfShield

I have a lot more code than I'm going to post here, but I am posting the relevant parts. What I have is a Calculator program. Here's the code: [CODE=Python] num1 = None num2 = None oper = None def calculate(num1, num2, oper): print("calculate() called") if(oper=="+"): answ = Decimal(num1) + …

Member Avatar for woooee
0
261
Member Avatar for chwong

HI all, I am the beginner of ASP.net. My cases scenario, I have a dropdown list (category) field which allow user to make selection then it will display the record on the gridview. I need to add the new record by using the detailview. In my detailview, i cannot showing …

0
114
Member Avatar for valter

Hi, I am not looking for a response to this, but I thought I would post this info which might help others in the futture. If you change the default install directory say from C; to something else, which you might do if your c: drive is getting full. Please …

Member Avatar for valter
0
70
Member Avatar for rameshbadi

Hi.. I am learning C using Def c++. I struck at strcpy command. It giving error for a small exercise [CODE]#include<stdio.h> main() { char string[20]; strcpy("Hello", string); printf("%s", string); fflush(stdin); getchar(); }[/CODE] it giving error: `strcpy' undeclared (first use this function) Please help me that what can i do in …

Member Avatar for Ancient Dragon
0
439
Member Avatar for vincezed

Hi all I am developing a form which has a gridview... i am try to do is.. it has three columns... the first two columns are for display purposr. The third column is a combobox column which displays different value for different rows.. it is fatched from database.. i am …

Member Avatar for lianpiau
0
127
Member Avatar for sergent

I made a simple assembly program about a year ago and I lost the source, but I still have the .exe file. I wanted to see the assembly code, so I disassembled the program with ollydbg and there was MUCH MORE code. There was about 3000-4000 lines of code, but …

Member Avatar for GunnerInc
0
184
Member Avatar for rhino18

I am wondering what people's opinions might be about using the SHA1 hash of the user's password for one of my session cookie values; bad idea?

Member Avatar for Stefano Mtangoo
0
71
Member Avatar for maxlipman

I found a change password script but i need to modify it to change the password in the "profiles" table and the "password " the username row is "username" row. Here is the code: [code=php] <? //*************************************** // This is downloaded from www.plus2net.com // /// You can distribute this code …

Member Avatar for Stefano Mtangoo
0
223
Member Avatar for skiabox

I get the following error : Parse error: syntax error, unexpected T_STRING in /Library/WebServer/Documents/MyProject5/menus.php on line 48 This is the code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Date Menus</title> </head> <body> <?php //Script 10.1 - menus.php //This script defines and …

Member Avatar for Stefano Mtangoo
0
329
Member Avatar for Matt_L

I am not the original author of this software project and the code is poorly documented. I am mainly a Java/C++ developer. The program displays the tree structure and allows files and folder to be selected. The program is getting errors with FileSystemTreeView when trying to return nodes on a …

Member Avatar for dxider
0
162
Member Avatar for Ertzel

I am trying to use the Net User command from the cmd in my C++ program. I have this... [CODE]char acUserName[100]; DWORD nUserName = sizeof(acUserName); if (GetUserName(acUserName, &nUserName)){ cout << "User Name: " << acUserName << endl; system("Net User"); }[/CODE] This displays the User Name on the screen and then …

Member Avatar for Ertzel
0
148
Member Avatar for alex-i

Hi gyes I need any solution about login form I have 3 from (formLogin, formUsers, FormAdministrator) In formLogin i have 2 textbox for user and password and 2 radiobutton who check if I click radiobuttonuser to open formUser and if i click on radiobutonAdmin to open formAdministrator. how can I …

Member Avatar for Ezzaral
0
98
Member Avatar for jayrpalanas

anybody can give me the free link for c/c++ software?...please give me... thank you!!!

Member Avatar for iamthwee
0
171
Member Avatar for SQLpower

Hello, guys. I found useful stuff so far. I'd like to ask if someone can give me some ideas how to wandering guards or set switches to open certain doors in a maze game in c++? At the moment I am thinking just to add some bits, can someone give …

Member Avatar for iamthwee
0
321
Member Avatar for lokodomain

Trying to learn PHP from a book and I swear I'm going balder by the minute!! Anyway heres my predicament; I want to display some simple incrementing data from a PHP loop within a table. So that each cell within the table displays a different value ie. cell 1 displays …

Member Avatar for diafol
0
188
Member Avatar for infiniteloop56

Hey everyone, I am new to this site, basically my problem is this: The user inputs an integer, and then the user inputs a character, the program is supposed to make a triangle out of the character, with the max width of the user inputed integer. for example; user inputs …

Member Avatar for goldzero
0
1K
Member Avatar for vivekchandra

I had a file info.php with class named xyz and functions within it, I am trying to fetch data from data base from another file show.php..but it is not working and shows "Notice: Undefined variable $info"....is there any help wht am i doing wrong... my code is.. in dblink() // …

Member Avatar for Narue
0
181
Member Avatar for jrotunda85

Let's say I have the majority of my site in the 'root' WWW directory on the server, such as: [url]www.domain.com/index.php[/url] My current header & footer files are set to respect this configuration and work beautifully. I am now in the process however of creating a new directory which will be …

Member Avatar for almostbob
0
494
Member Avatar for vivekchandra

i have a little syntax problem in php mysql, and i cant figure it out, hoping that u guys can help me out....mysql error and code are below Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for pritaeas
0
192
Member Avatar for SQLpower

Hello. I have some problems understanding the code. I'd like to ask for some help. I need someone to break it down for me. Just to explain what's going on and what's happening. Well this is map.cpp: I got the other bits but I am struggling with this one and …

Member Avatar for Sky Diploma
0
206
Member Avatar for ari$av3s

Hi! I am looking to make an adjustment to this script. I'm trying to find a way to do it as neatly as possible, and without breaking any pre-existing functionality. The code is here, with its corresponding tutorial: [URL="http://tympanus.net/codrops/2011/03/28/moving-boxes-content/"]http://tympanus.net/codrops/2011/03/28/moving-boxes-content/[/URL] What I'm trying to do is have the first section open …

Member Avatar for Airshow
0
195
Member Avatar for DerrickC

I have written the following program. It collects inventory information and stores it in a file. I need to write a separate program that will access that file and give me the totals of the information stored in it ie. (quantity,wholesalecost,retailcost). What I'm specifically having trouble with is how to …

Member Avatar for DerrickC
0
184
Member Avatar for VIPER5646

[QUOTE]Hi all I am using Vb2008 Express and an Access DB. I would like to Display a note from a column in the Notes_tbl to a text box this from an Access database. Here is the code that I used but it does not do the job. [/QUOTE] [ICODE] Dim …

Member Avatar for viki123
0
544
Member Avatar for programing

plz help me with code c++ for binary full adder that sum to binaryn like 1111 + 0110 [CODE]#include <iostream> using std::cout; using std::endl; const int LENGTH = 5; char sumChars(char x, char y, char& carry); int main() { char first[LENGTH + 1] = "10100";// 20 char second[LENGTH + 1] …

Member Avatar for Sky Diploma
0
3K
Member Avatar for trebor-pl

Hi, I have a problem with my Normalisation. The case is that I need it to pass the module in college. I have a great difficulty with doing my 3NF of Normalisation, would you be so kind with helping me to achieve this criteria. This is the table upto 2NF: …

Member Avatar for BitBlt
0
904
Member Avatar for VulcanDesign

Hi all, I'm trying to use Python's urllib to get a Facebook profile page. I get the following error: [CODE]IOError: [Errno socket error] [Errno 10035] A non-blocking socket operation could not be completed immediately[/CODE] Here's my code: [CODE] import urllib member_profile_text = urllib.urlopen('http://www.facebook.com/profile.php?id=1073109649').read() [/CODE] I need to get this working …

Member Avatar for VulcanDesign
0
542
Member Avatar for virusisfound

How can I change the app.config file path at run time. When user select the name and enter the passward. Please can any one provide me some code for that. Like a login form.

Member Avatar for virusisfound
0
197
Member Avatar for markfw

Hi I have some questions: I'm getting segmentation fault on print_clauses(...) function and I really can't figure it out why. But the bigger question is, am I doing something wrong in build_clauses(...) function? Am I using double pointers in right way? because the second #if ... #endif gives me N …

Member Avatar for markfw
0
124
Member Avatar for jacksantho

Hi, Please help me out. 1. Getting HYPERLINK value from page1 and saving in page2 using GET method.($re=$_GET[variable];) 2. Passing this value in -> select query 3. Displaying my output - correctly(in each and every value, there is an SUBMIT button.) 4. My Form Action is page2 itself. 5. Due …

Member Avatar for C#Jaap
0
285
Member Avatar for sakwoya

Hi all I have been looking at the following upside down and sideways for a day now. I have a PHP page that is making use of a session value in an SQL query. The query requires an integer (it's searching on the numeric index of a table in the …

Member Avatar for sakwoya
0
1K
Member Avatar for silvercats

1.Are these steps also known as Schemas? 2.provide me very short details on each step please. ex |conceptual design : 1.ER diagrams are used 2.based on User side <<<like that shortly. thanks

Member Avatar for BitBlt
0
121
Member Avatar for winecoding

In servlet side, I am trying to receive an vector sent from the applet. The code is like [CODE]InputStream in = request.getInputStream(); ObjectInputStream inputFromApplet = new ObjectInputStream(in); Vector v = (Vector)inputFromApplet.readObject(); [/CODE] But the compiler specifies that the following one is wrong. [CODE]Vector v = (Vector)inputFromApplet.readObject(); [/CODE] The error message …

Member Avatar for JamesCherrill
0
145
Member Avatar for Muhammad Anas

A part of one of the programs in my assignment requires to declare three arrays of same size which will be used in parallel to store gpa's, registration numbers and names of the students respectively. When I use a single loop to take input in all these three arrays then …

Member Avatar for Muhammad Anas
0
2K
Member Avatar for solidrichard

Hi i have problem in my login code. Firts someone fill in login informations this is checking code [CODE] // mysql connection $username=$_POST['username']; $password=md5($_POST['password']); $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $sql="SELECT * FROM users WHERE username = '$username' and password = '$password'"; $result=mysql_query($sql); $count=mysql_num_rows($result); …

Member Avatar for solidrichard
0
189
Member Avatar for adamworld

I have this page that you can do a search on the site. However, if I do a search that contains an apostrophe ('), it breaks and doesn't display anything although I have entries that have them. Does an easy fix exist for this problem? This is an example of …

Member Avatar for diafol
0
135
Member Avatar for gcardonav

Hi guys: The following code compares two folders and if the input is correct will print out the data. That's not my problem, I wanted to add an empty line when the comparison is incorrect. The things is that it adds a good amount of empty lines before I get …

Member Avatar for WaltP
0
223
Member Avatar for arshi9464

i am working on a java project, one of its web pages includes this query:- [code] select pname,age,gender,dscrptn from patient where curdate='05-17-2011' and docref='arshdeep' and meet='no' [/code] but it is not working, i executed this in MS SQL, BUT ITS SHOWING ONLY THE COLUMN NAMES THERE. i.e pname age gender …

Member Avatar for BitBlt
0
80
Member Avatar for tboz203

I've had an idea for a class that, instead of storing a number as a single floating-point value, stores the exact value as two or more integers (in cases such as division, fractional exponents, or irrational numbers such as pi or e). The class would have it's own mathematical functions …

Member Avatar for JamesCherrill
0
192
Member Avatar for xanawa

Hi, I need a validation using regex just the pattern i have. The user has to enter digits and after the digits one letter. User can have up to six digits or less eg: 1234(G) 123456(K) 12(O)

Member Avatar for xanawa
0
801
Member Avatar for senthilamp4

Dear Experts, Here i have bit stuck with logic to create text to CSV file creation. pls help me to this code. Thanks in Advance, Senthil. V [CODE] [U]input file[/U] "OC192-11,OC192:ESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SEFSS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:CVL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" [/CODE] [CODE] [U]OUTPUT as CSV [/U] ESS SESS SEFSS CVL "OC192-11,OC192:ESS,0", "OC192-11,OC192:SESS,0", "OC192-11,OC192:SEFSS,0", OC192-11,OC192:CVL,0, [/CODE]

Member Avatar for d5e5
0
285
Member Avatar for maxlipman

I need a lost password script for my existing login script. I need one that sends an email to the person once they enter their username. It is in a database with other things but the tables name is "profiles". The rows in that table are "id" "email" "username" "password". …

Member Avatar for Ezzaral
0
339
Member Avatar for failbot

This should display 5 lines of code that say "test", yet I am only getting 4 and it is never reaching zero, since the output never displays, "the test is over". What is wrong with this implementation? I am quite sure it's an error in my next() function. Any help …

Member Avatar for predator78
0
165
Member Avatar for raghujosh

I need a string appended to a variable. [CODE]$name = "app200.php"; $string = <form name = "$name" method = "post"> echo "$string";[/CODE] The result I need is [CODE]<form name = [B]"app200.php"[/B] method = "post">[/CODE] But I am not able to echo the string this way. Any help. Thanks

Member Avatar for raghujosh
0
151
Member Avatar for chriselectrix

Hi All Ive got an XSL for some XML data. The XML data contains a date field called OrderNum_OrderDate. How can I filter the data so it only displays data from the XML that has a date of TODAY + 7 days. I only want to see information for the …

Member Avatar for SBA-CDeCinko
0
439
Member Avatar for TrustyTony

[I]This is one idea for thread of some lessons learned with experience about asking wrong question and answers 'thinking out of box'. If there is need to have sticky, I suggest that this thread become sticky development thread and moderator can move the upvoted suggestions for next part in new …

Member Avatar for TrustyTony
0
223
Member Avatar for arshi9464

i am having problem in this code, i have written //ERROR, where i am getting error.... PLEASE HELP BASICALLUY, WHAT I AM DOING IS:- I HAVE A GENERATE AND OK BUTTON, WHENEVER I CLICK GENERATE BUTTON, A NEW SET OF INFO IS RETRIEVED FROM THE DATABASE AND THE TEXT FIELDS …

Member Avatar for javaAddict
0
174
Member Avatar for rolandrogers

Hi, I have a MySQL DB and I am trying to set up a report page. To do so I need to be able to add the data in 6 or 7 fields into a single field for use in a summary report. How can I do that? SUM() seems …

Member Avatar for rolandrogers
0
175

The End.