'; echo ''; echo ''; echo ''; echo ''; echo 'Browse - ' . $serverName . ''; echo ''; echo ''; echo '
'; 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 '' . $row['; 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! Or if the problem persists contact the system administrator"; ?>

 

Home '; echo ''; ?>