Inserting html code in a mysql table

后端 未结 11 814
我在风中等你
我在风中等你 2020-12-11 01:14

I use joomla to manage a website... and i am developing a stand alone php application that will insert and modify data into the tables that are used by joomla to store the

11条回答
  •  醉梦人生
    2020-12-11 01:44

    This is the best way i found addslashes()

    $article_code = addslashes($article_code);
    
    UPDATE $jos_content
    SET    introtext = '$intro_code',
           fulltext  = '$article_code'
    WHERE  id = '$article_id'";
    

提交回复
热议问题