The Way to Programming
The Way to Programming
Remember that mysql_ functions are deprecated as of PHP5. If running PHP 5, use the following instead:
If you wanted to use OOP:
connect_errno){
die("Could not connect: " . $link->connect_error);
}
echo 'Connected successfully';
// $link->query("SELECT * FROM xyz
WHERE 1") as opposed to mysqli_query($link, "SELECT * ...");
$link->close();
?>
Sign in to your account