You have an error in your SQL syntax. Help!

08-31-04, 06:50 PM
|
|
Newbie Coder
|
|
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
You have an error in your SQL syntax. Help!
This is the error im getting
I think this is the string thats giving me trouble.
|

08-31-04, 08:28 PM
|
 |
Junior Code Guru
|
|
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi there,
Try this:
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.
__________________
Blavv =|
|

08-31-04, 10:05 PM
|
|
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:
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
|

09-01-04, 01:32 AM
|
|
Newbie Coder
|
|
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Can anyone help fix these errors?
|

09-01-04, 01:49 AM
|
 |
Junior Code Guru
|
|
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello again,
Are you getting the same error or a different one?
Try this then:
Good luck.
__________________
Blavv =|
|

09-01-04, 01:54 AM
|
|
Junior Code Guru
|
|
Join Date: Jan 2004
Location: Helsinki, Finland
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
isint that supposed to do like this??
|

09-01-04, 04:02 AM
|
|
Newbie Coder
|
|
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Both of those kinda worked. I stopped recieving the error and it said comment posted succesfully but the comment does not appear on the page. If anyone can help me via email or aim that would be so awesome. I found a few errors that i need help with so if anyone has the time please reply.
Thanks in advanced
|

09-08-04, 06:05 AM
|
|
Newbie Coder
|
|
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Anyone help? The comment is being stored in the database but it is not showing on the page... Anyhelp? I get this error where the comment is supposed to show
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|