Guest List
query($sql);
if ($result->num_rows > 0) {
echo ‘
‘;
echo ‘
‘;
echo ‘
‘;
echo ‘
‘;
echo ‘
‘;
echo ‘
‘;
while($row = $result->fetch_assoc()) {
echo ”
“;
echo ”
“;
echo ”
“;
echo ”
“;
echo ”
“;
}
echo ‘
First Name | Last Name | Table Number |
---|---|---|
” . $row[“first_name”] . “ | ” . $row[“last_name”] . “ | ” . $row[“table_number”] . “ |
‘;
echo “Welcome ” . $row[“first_name”] .”! You’re sitting at Table ” . $row[“table_number”].”.”;
} else {
echo “We’re sorry that we are not able to locate your table at this time, please meet with one of the bridesmaids for assistance.”;
}
$conn->close();
}
?>