Open tonyalvizo opened 6 years ago
this is because mysql is deprecated in favour of mysqli so change mysql to mysqli and it should work.
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
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