alinawaz / crazyDatabase

Helping PHP Database Class - Easy to use
1 stars 0 forks source link

Error #1

Open HassanNawazHiraj opened 8 years ago

HassanNawazHiraj commented 8 years ago

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'");

alinawaz commented 8 years ago

Issue has been resolved, please check