Commit 93b70b89 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

efforts to untrack files failed

parent ce805124
<?php
/* connect to the database */
$link = mysqli_connect(
'localhost',
'sharr003',
'password123',
'sharr003_recordstore'
);
/* check connection succeeded */
if (mysqli_connect_errno()) {
exit(mysqli_connect_error());
}
/* fetch a result set */
$sql = "SELECT first_name, last_name FROM artist";
$result = mysqli_query($link, $sql);
/* check query returned a result */
if ($result === false) {
echo mysqli_error($link);
} else {
/* fetch associative array */
while ($row = mysqli_fetch_assoc($result)) {
echo($row['first_name']." (".$row['last_name'].") ");
}
/* free result set */
mysqli_free_result($result);
}
/* close the connection to the database */
mysqli_close($link)
?>
<?php
/* connect to the database */
$link = mysqli_connect(
'localhost',
'sharr003',
'password123',
'sharr003_recordstore'
);
/* check connection succeeded */
if (mysqli_connect_errno()) {
exit(mysqli_connect_error());
}
/* fetch a result set */
$sql = "SELECT title, genre FROM record";
$result = mysqli_query($link, $sql);
/* check query returned a result */
if ($result === false) {
echo mysqli_error($link);
} else {
// $row_cnt = mysqli_num_rows($result);
// echo $row_cnt
/* fetch associative array */
while ($row = mysqli_fetch_assoc($result)) {
echo($row['title']." (".$row['genre'].") ");
}
/* free result set */
mysqli_free_result($result);
}
/* close the connection to the database */
mysqli_close($link)
?>
<?php
/* Open a new connection to the MySQL server */
/* connect to the database */
$link = mysqli_connect(
'localhost',
'sharr003',
'password123',
'sharr003_recordstore'
);
/* check connection succeeded */
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
<?php
/* Open a new connection to the MySQL server */
/* connect to the database */
$link = mysqli_connect(
'localhost',
'sharr003',
'password123',
'sharr003_recordstore'
);
/* check connection succeeded */
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
<?php
/* Open a new connection to the MySQL server */
/* connect to the database */
$link = mysqli_connect(
'localhost',
'sharr003',
'password123',
'sharr003_recordstore'
);
/* check connection succeeded */
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
<?php
/* Open a new connection to the MySQL server */
/* connect to the database */
$link = mysqli_connect(
'localhost',
'sharr003',
'password123',
'sharr003_recordstore'
);
/* check connection succeeded */
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment