Het volgende probleem treedt op:
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in C:\USB WebServer\root\Youtube11\index.php on line 27
Code die ik tot nog toe heb:
<?php
require_once('config.php');
$query = "SELECT * FROM pagination";
$result = mysqli_query($con, $query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pagination in PHP with Next and Previous</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<body>
<table class="table table-striped">
<tr>
<td>User ID</td>
<td>User Name</td>
<td>User Email</td>
</tr>
<tr>
<?php
while($row = mysqli_fetch_assoc($result))
{
?>
<td> <php? echo $row['ID'] ?></td>
<td> <php? echo $row['Username'] ?> </td>
<td> <php? echo $row['Email'] ?> </td>
</tr>
<?php
}
?>
</body>
</html>Wie helpt mij?