我坚持这个有人可以帮忙的错误吗?
警告:mysqli_fetch_array()要求参数1为mysqli_result,第10行/home/jesse/domains/jesse.hilber.tk/public_html/elgreco/admin/textedit.php中给出的整数
<!DOCTYPE html>
<html>
<body>
<?php
ini_set('display_errors', 1);
require('connect.php');
$query1=mysqli_query($con,"select * from paginatekst");
$query1=1;
echo "<table><tr><td>Pagina</td><td>Tekst</td><td></td><td></td>";
while($query2=mysqli_fetch_array($query1))
{
echo "<tr><td>".$query2['pagina']."</td>";
echo "<td>".$query2['tekst']."</td>";
echo "<td><a href='edit.php?id=".$query2['id']."'>Edit</a></td>";
echo "<td><a href='delete.php?id=".$query2['id']."'>x</a></td><tr>";
}
?>
</table>
</body>
</html>
答案 0 :(得分:0)
删除此行
$query1=1;
您正在使用整数强制查询结果