query($game_query);
if (mysqli_num_rows($result) == 0) {
echo ('no details about this game have been added, yet.');
}
else {
while ($row = $result->fetch_assoc()) {
echo ('Title: ');
echo $row["name"];
echo ('
Summary: ');
echo $row["summary"];
echo ('
Platform: ');
echo $row["platform"];
echo ('
Release Date: ');
echo $row["release"];
if ($row["url1"] != "") {
echo ('
Download:
');
echo $row["url1_text"];
echo ('');
if ($row["url2"] != "") {
echo ('
Download:
');
echo $row["url2_text"];
echo ('');
}
}
else {
echo ('
Download: Not available for download, yet');
}
echo ('
Screenshots: ');
// need to add in screenshot script here
}
}
}
?>