E-Commerce-using-PHP-and-MySQL icon indicating copy to clipboard operation
E-Commerce-using-PHP-and-MySQL copied to clipboard

Issue When running on xampp

Open tonyalvizo opened this issue 7 years ago • 2 comments

this is the error I get

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\store\storescripts\connect_to_mysql.php:10 Stack trace: #0 C:\xampp\htdocs\store\index.php(6): include() #1 {main} thrown in C:\xampp\htdocs\store\storescripts\connect_to_mysql.php on line 10

tonyalvizo avatar Feb 21 '18 18:02 tonyalvizo

this is because mysql is deprecated in favour of mysqli so change mysql to mysqli and it should work.

BlessingD avatar May 25 '19 06:05 BlessingD

mysqli_select_db() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\tarun\storescripts\connect_to_mysql.php on line 11 no database after changing my sql to mysqli,this error is shown

rjtazree avatar Jun 16 '19 08:06 rjtazree