更新时间:2023-02-23 10:18:18
<?php
$host = 'localhost';
$user = 'root';
$pass = '';
$db = 'mydatabase';
$connection = new mysqli ($host, $user, $pass, $db) or die ("Databse connection failed");
$sql = "SELECT waitlist_text FROM texts";
$waitlist_text = $connection->query($sql);
while($row = $waitlist_text->fetch_assoc()) {
echo $row["waitlist_text"];
}
?>