View Single Post
  #1 (permalink)  
Old 06-03-05, 09:35 PM
Dr.Jamescook Dr.Jamescook is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Question Can't find error in sql syntax.

Hello,
I am having trouble finding the error in my SQL syntax. Here is what it says:
Quote:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM nuke_bible WHERE Book = 'Deuteronomy' AND Chapter = '20''
Here is my code:
PHP Code:

mysql_query("SELECT Testament, Book, Chapter, Texta, Textb, Textc, $ID $TMID $VerseID FROM nuke_bible WHERE Book = '$book' AND Chapter = '$chapter'") or die(mysql_error()); 

I have tried everything that I know is possible to try. Please help. Thanks.
Reply With Quote