How to connect to mysqli using php
<?php
$link = mysqli_connect(\'localhost\', \'user_name\', \'passw0rd\');
if (!$link) {
die(\'Could not connect: \' . mysqli_error());
}
echo \'Connected successfully\';
mysqli_close($link);
?>
How to connect to mysqli using php
<?php
$link = mysqli_connect(\'localhost\', \'user_name\', \'passw0rd\');
if (!$link) {
die(\'Could not connect: \' . mysqli_error());
}
echo \'Connected successfully\';
mysqli_close($link);
?>