Last active
October 25, 2017 15:18
-
-
Save jakewtaylor/b739a638de8080997ec11629dff38758 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$sql = "SELECT id, forename, surname | |
FROM character_information | |
WHERE project_name='$project_name' | |
AND username='$usernamevariable'"; | |
$characters = $conn->query($sql); | |
while ($character = $characters->fetch_assoc()) { | |
$id = $character['id']; | |
$name = $character['forename'] . ' ' . $character['surname']; | |
echo "<option value=\"$id\">$name</option>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment