
November 21st, 2012, 08:03 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 2
Time spent in forums: 11 m 18 sec
Reputation Power: 0
|
|
Problem with pear DB insert
hi,
i'm new to pear, i have a problem with the next code
(written by prev programmer):
$q="INSERT INTO message(message_text) VALUES (?)";
$r=$db->query($q, array($message_text));
The query fails only when $message_text contain mysql keywords like:
$message_text="please select option from the list"
it works when hosted on hostmonster.com
but not on liquidweb.com
i have no idea how to solve this. plz help me 
|