Results 1 to 3 of 3
Jan 18, 2013, 09:44 #1
- Join Date
- Jan 2013
- 0 Post(s)
- 0 Thread(s)
HELP on bindValue() !! I got a fatal error, please teach me how to fix it.
I got this Fatal error: Call to a member function bindValue() on a non-object in c:\wamp\www\addjoke\index.php on line 51.
What does it mean and how to fix it? Below is the code teached by book, after i execute it, the browser gave me fatal error on bindValue.
Any opinion will be appreciate.
$sql='INSERT INTO joke SET
joketext = :joketext,
jokedate = CURDATE()';
$error='Error adding submitted joke: ' . $e->getMessage();
header ('Location: .');