Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\gamegtx\lib\crazyDatabase.php:31 Stack trace: #0 C:\xampp\htdocs\gamegtx\login.php(14): Database::Connect() #1 {main} thrown in C:\xampp\htdocs\gamegtx\lib\crazyDatabase.php on line 31
Code :
include_once 'lib/crazyDatabase.php';
$db = new Database();
$db->Connect();
$result = $db->Query("SELECT * FROM users WHERE username='$user' AND password='$pass'");
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\gamegtx\lib\crazyDatabase.php:31 Stack trace: #0 C:\xampp\htdocs\gamegtx\login.php(14): Database::Connect() #1 {main} thrown in C:\xampp\htdocs\gamegtx\lib\crazyDatabase.php on line 31
Code : include_once 'lib/crazyDatabase.php'; $db = new Database(); $db->Connect(); $result = $db->Query("SELECT * FROM users WHERE username='$user' AND password='$pass'");