$connection=mysqli_connect("$db_host","$db_username","$db_pass") or die ("could not connect to mysql");
mysqli_select_db($connection, "$db_name") or die ("no database");
I have edited the the file( mysql to mysqli and added the required parameter), When I run index.php I get the error no database( from connect_to_mysql.php file).
A soon as I downloaded the file I did the above edit and ran the index.php file and nothing else. Please tell me If i have to run anything else so that the databases are created. what do I have to do with the mystore.sql file? PLEASE HELP
<?php error_reporting(E_ALL ^ E_DEPRECATED); ?> <?php
$db_host = "localhost"; $db_username = "root";
$db_pass = "";
$db_name = "mystore";
$connection=mysqli_connect("$db_host","$db_username","$db_pass") or die ("could not connect to mysql"); mysqli_select_db($connection, "$db_name") or die ("no database");
I have edited the the file( mysql to mysqli and added the required parameter), When I run index.php I get the error no database( from connect_to_mysql.php file).
A soon as I downloaded the file I did the above edit and ran the index.php file and nothing else. Please tell me If i have to run anything else so that the databases are created. what do I have to do with the mystore.sql file? PLEASE HELP