';
echo '
' . $serverName . '
';
$count = 0;
//Connect to MySQL
$conn = mysqli_connect($sqlServer, $sqlUsername, $sqlPassword, $dbname);
if (!$conn) {
die ("CONNECTION FAIL " . mysqli_connect_error());
} else {
}
echo '
All public photos
';
$browse = "SELECT * FROM $tablename WHERE isPrivate = 0";
$result = mysqli_query($conn, $browse);
//browse all code goes here
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
$file = $row["imgID"] . "." . $row["fileType"];
$count++;
echo '

';
if ($count == 3) { // Change this number based on how many pictures across you want on the page
echo '
';
}
}
} else {
echo "Shit, something broke. Try again! Maybe there's nothing here? Or if the problem persists after uploading, contact the system administrator or make a new issue on GitHub";
?>
Home
';
echo '
';
echo '
';
echo '
' . $serverName . " - " . $serverVers . "
";
echo '';
echo '