Notice: Undefined property: database::$con in /home/otdemo/public_html/demo/index.php on line 13

Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /home/otdemo/public_html/demo/index.php:16 Stack trace: #0 /home/otdemo/public_html/demo/index.php(187): database->connect() #1 {main} thrown in /home/otdemo/public_html/demo/index.php on line 16