i am using a wysiwyg editor , if i use strict sanitizing rules then all the tags are getting stripped , i just want to prevent sql injection , how can i do it
currently i am just using code something like
$something= $_POST['content'];
$insert = "INSERT INTO database (content) VALUES($something)";
(not using any sanitization)
and directly adding it into database ... how can i validize the input without my tags from wysiwyg editor getting stripped