Jump to content

Edit History

JoelWebsites

JoelWebsites

pSQL() filters out all html data to database...how should html data be added or updated to custom tables? Please advice thanks.

Example
 

$qur = 'UPDATE '._DB_PREFIX_.'html_content SET data_html = "'.pSQL($data_html).'" WHERE id_shop = "'.(int)$id_shop.'";';
$results = Db::getInstance()->Execute($qur);

 

How do we properly cast variables (containing html)  in our module before we submit the module to the addons store?

 

JoelWebsites

JoelWebsites

pSQL() filters out all html data to database...how should html data be added or updated to custom tables? Please advice thanks.

Example
 

$qur = 'UPDATE '._DB_PREFIX_.'html_content SET data_html = "'.pSQL($data_html).'" WHERE id_shop = "'.(int)$id_shop.'";';
$results = Db::getInstance()->Execute($qur);

 

×
×
  • Create New...