Dave Smith - 2017-08-30 19:18:11 - In reply to message 3 from Udara Madushan
Using prepared statements automatically sanitizes the query, however this class does not create prepared statements for you. If your script using mysql does not properly sanitize then it will still be vulnerable using mysqli.
Assuming that your header.php file is included in all the source files, then yes you would include this class there. It will only replace mysql with mysqli when the mysql extension is no longer present. If you are running on PHP 5 then this class does nothing until you update to PHP 7.
Udara Madushan - 2017-09-04 08:36:38 - In reply to message 8 from Dave Smith
I replaced the current class files and replaced by new files. Then executed the script.. I couldn't find any progress out of this.. But I'm not sure its due to the mysql_result issue or some other issue in my script..
I simply included you class on my scripts. But I found some ajax calls not operating..