Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\vote2\classes\db.class.php:1 Stack trace: #0 C:\xampp\htdocs\vote2\classes\vote.class.php(1): Database->__construct() #1 C:\xampp\htdocs\vote2\json\set.php(1): VoteClass->__construct() #2 {main} thrown in C:\xampp\htdocs\vote2\classes\db.class.php on line 1