get_magic_quotes_gpc() in PHP problem ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hal Halloway

    get_magic_quotes_gpc() in PHP problem ?

    If I uncomment the code with "mysql_real_esc ape_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 howto_temp.page SET page.title = '$temp_title',
    descrip = '$temp_descrip' WHERE page.page_id = '$posted_pk '";

    //if (!get_magic_quo tes_gpc()) {
    // $update_page = mysql_real_esca pe_string($upda te_page);
    //}

    mysql_query($up date_page);
    ....
Working...