Professional Documents
Culture Documents
Mysqli
Mysqli
Mysqli
<?php
$mysqli = new mysqli("localhost", "user", "pass", "music");
if ($mysqli === false) {
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$sql = "SELECT artist_id, artist_name FROM artists";