Inserting html code in a mysql table

后端 未结 11 846
我在风中等你
我在风中等你 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 02:02

    Just to confirm, your query looks like this right:

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

提交回复
热议问题