my code for the most part works but every time it runs it adds two of the same values to the database. It adds 80 different values, then after that 80 it duplicates the same 80 for a total of 120. Here is my code (its pretty messy)
The first time the script runs it parses 80 values and uploads 40 of those values into the database, then the same code is reiterated and a different 40 values are added. (but for some reason the script is executed twice.) Its probabley an error with the sepreate functions (as i didnt design that part and im use to just one big jumbble of code)
So any input is appreciated
Thanks in advanced
help spot the error
Moderator: General Moderators
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
help spot the error
Last edited by SidewinderX on Thu Oct 13, 2005 3:06 pm, edited 1 time in total.
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
here is another one
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in d:\www3\PCID\pcid2.php on line 19
Last edited by SidewinderX on Thu Oct 13, 2005 3:07 pm, edited 1 time in total.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
cough cough
for more information
Code: Select all
$result = mysql_query() or die(mysql_error());-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
this is the same query
and it works perfectley fine. Also didnt add any more information
and it works perfectley fine. Also
Code: Select all
$result = mysql_query() or die(mysql_error());