Forum Moderators: coopster
Anytime I put a ' in the text the script returns an error, and I have to escape the character before it works.
here's the code...
$maintextdata = $_POST["editmaintext"];
$pagename = $_POST["replacedata"];
echo $pagename;
$sqlmaintext = "UPDATE menu SET maintext = '$maintextdata' WHERE linktext = '$pagename' LIMIT 1";
I assumed it had something to do with my syntax, again, but I've tried different ways with no success, and some worse scenarios where i had to escape " and , aswell as '.
Any help is much appreciated.
nearly forgot, the script works fine on another server, could it be a problem with my current server's php version? which is 4.3.11-1.fc2.3.legacy, as far as i know.