Jump to content

pSQL() filters out all html data to database? how to insert html data to database custom table


Recommended Posts

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?

 

Edited by JoelWebsites (see edit history)
Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...