Last active
December 14, 2015 00:39
-
-
Save anthonycvella/5000282 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = $db->query("SELECT * FROM `schools`", false)->execute(); | |
echo "<label for=\"username\">Home School:</label>"; | |
echo "<select name=\"homeSchool\" class=\"addGameField\">"; | |
if ($db->getTotalRows($query)) { | |
while ($result = $db->fetch($query)) { | |
echo "<option value=".$result['schoolID'].">".$result['schoolName']."</option>"; | |
} | |
echo "</select>"; | |
} | |
echo "<label for=\"username\">Away School:</label>"; | |
echo "<select name=\"awaySchool\" class=\"addGameField\">"; | |
if ($db->getTotalRows($query)) { | |
while ($result = $db->fetch($query)) { | |
echo "<option value=".$result['schoolID'].">".$result['schoolName']."</option>"; | |
} | |
echo "</select>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment