Thread: Error?
View Single Post
Old 06-15-2009, 04:48 PM   #1 (permalink)
Randy
The Acquainted
 
Randy's Avatar
 
Join Date: May 2007
Location: Your G/F's Closet
Posts: 114
Thanks: 7
Randy is on a distinguished road
Default Error?

So im running an insert for stuff on my script and im getting this error:

Quote:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\staff\admin\index.php on line 275
My code:
PHP Code:
LINE 274$sql2="INSERT INTO adminforum_question(topic, detail, name, category, priority, datetime)VALUES('$topic', '$detail', '$name', '$category', '$priority', '$datetime')";
LINE 275$result=mysql_query($sql2); 
Not sure whats wrong with it as I copied it from another script I have.

Thanks,
Randy
__________________
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 - Andrew Rutherford
Send a message via AIM to Randy Send a message via MSN to Randy
Randy is offline  
Reply With Quote