Changing From mysql_ Functions to mysqli_

Creating a Connection Creating and closing a connection are exactly the same using mysqli_: // Creating a Connection with mysql_connect() $conn = mysql_connect($servername, $username, $password); // Do stuff with database here. // Close the Connection mysql_close($conn); //////////////////////////////////// // Creating a Connection with mysqli_connect() $conn = mysqli_connect($servername, $username, $password); // Do […]