fix content
change db connection to PDO
change db connection to PDO
change db connection to PDO and using global vars
change db connection to PDO and using global vars
displaying error messages
fixed php warning
fixed php warning