Current state is this code:
while($row = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['timeStamp'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['what'] . "</td>";
echo "<td>" . $row['salad'] . "</td>";
echo "<td>" . $row['tomatoes'] . "</td>";
echo "<td>" . $row['onions'] . "</td>";
echo "<td>" . $row['carrots'] . "</td>";
echo "<td>" . $row['hot'] . "</td>";
echo "<td>" . $row['cheese'] . "</td>";
echo "<td>" . $row['sauce'] . "</td>";
echo "</tr>";
The rows salad, tomatoes, onions, carrots, hot and cheese are saved as true and false, because the users insert them as checkboxes. What i basically want is to display true or false as checkboxes in the table i'm writing the sql result
Is this somehow possible? Let me know if you need more code (like the whole php).
Aucun commentaire:
Enregistrer un commentaire