A Small Bug Giving Me A Big Headache
| From: | Dr. Shim | Date: | Sun, 03 Mar 2002 02:46:49 +0000 |
| Subject: | A Small Bug Giving Me A Big Headache | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86944@lists.php.net to get a copy of this message | ||
I've tried, and tried. Reread, and reread. I can't at all find out what's
wrong with these two lines of code.
$SQLString = "INSERT INTO Movies (Title, Actors, Review, Reviewer, Short)
VALUES
('$Title','$Actors','$Review','$Reviewer','$Short')";
$cursor = odbc_exec($db, $SQLString);
I have an if...then conditional statement causing echo to print out an error
message if the $cursor returns false.
The $cursor keeps returning false. I don't know why! My $db variable (which
plugs into the odbc database) is fine. Those two lines have got to be the
problem.
Can you people help me out with this?
If I have to give you my whole script (not very long) I will.
Thanks for any help you can give me.