Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的代码,我找不到问题所在!
<?php include("dbc.php"); $result = mysqli_query($dbc,"SELECT * FROM employee"); while($row = mysqli_fetch_array($result)) { echo $row['name'] . " " . $row['age']." ".$row['id']; echo "<br>"; } ?>
mysqli_query“失败时返回 FALSE。”
mysqli_query
请仔细检查是否$dbc真的创建和预期的类型。
$dbc
见:http ://www.php.net/mysqli_query