View Single Post
  #3 (permalink)  
Old 08-31-04, 09:05 PM
SevEre SevEre is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blaw
Hi there,

Try this:

Code:
 gr_query('INSERT INTO file_comments fileid,username,comment VALUES("'.$_POST['dib'].'","'.$_POST['username'].'","'.mysql_escape_string($_POST['comments']).'")');
You got that error because you did not have any value in $_POST['dib'], creating a blank and breaking the syntax. I put double quotation marks around this variable, so even if this variable does not have a value, it will be treated as simply empty literal value. If this variable is supposed to hold a non-empty value all the time, there must be some mistakes made within your script.

HTH.
Thanks but it didnt work either. This is very frustrating because i paid someone from these forums to add a comments script and a download counter to my original script. Well he didnt finish the job i paid him to do. So i keep getting errors. If someone can please help me out by taking a look at what i have i would be most appreciative.

Thanks in Advanced
Reply With Quote