get_magic_quotes_gpc() in PHP problem ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

If I uncomment the code with "mysql_real_escape_string" the update does
not work. I thought it's pretty "safe" code. What could be wrong? i just
upgraded to PHP5 if that's a factor - not sure...but magic_quotes was
turned after the upgrade but i turned it off :^p

$update_page = "UPDATE SET page.title = '$temp_title',
descrip = '$temp_descrip' WHERE page.page_id = '$posted_pk '";

//if (!get_magic_quotes_gpc()) {
   //  $update_page = mysql_real_escape_string($update_page);


Site Timeline