category_manager.php
<?php
//LOAD USER
$result = mysql_query("SELECT * FROM kategori_berita");
while ($data = mysql_fetch_array($result)){
?>
<tr>
<td><?php echo $data['kategori'];?></td>
<td>
<a href="./category_manager.php?id=<?php echo $data['id']; ?>&mode=delete">Hapus</a> |
<a href="./category_manager.php?id=<?php echo $data['id']; ?>&mode=edit">Edit</a>
</td>
</tr>
<?php
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\php_template2\category_manager.php on line 127
What should I do so that the error would not appear.
Thanks.