from SQL to SQLI

update to php 5.5 and mysql isn’t working so i updated it to mysqli