Здравствуйте, я пытаюсь запустить свою базу данных, но не могу выполнить таблицу.
ERROR: Could not able to execute SELECT * FROM 'myguests' .
Что я уже пробовал:
<!DOCTYPE html> <html> <head> <title> Psychiatric disorders database </title> </head> <body> <table> <tr> <th> ID </th> <th> First name </th> <th> Last name </th> </tr> <?php include("connection.php"); $sql = "SELECT * FROM 'myguests' "; if($result = mysqli_query($conn, $sql)){ echo "<table>"; echo "<tr>"; echo "<th>ID</th>"; echo "<th>First_name</th>"; echo "<th>Last_name</th>"; echo "</tr>"; while($row = mysqli_fetch_array($result)){ echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>" . $row['First_name'] . "</td>"; echo "<td>" . $row['Last_name'] . "</td>"; echo "</tr>"; } echo "</table>"; // Free result set mysqli_free_result($result); } else{ echo "ERROR: Could not able to execute $sql. "; } // Close connection mysqli_close($conn); ?> </body> </html>