Hello,
I just made my web in localhost, everything was just fine until I updates my xampp to newer version. And my web now is on a mess.
<br/>
<div class="headerStyle">
</div>
<?php
$result = mysql_query("SELECT * FROM kategori_berita") or die(mysql_error());
echo '<ul>';
while ($data=mysql_fetch_array($result)){
if ($_REQUEST['catid']==$data['id'])
echo '<li style="color:#000;">'.$data['kategori'].'</li>';
else
echo '<li><a class="newsCategory" href="./?catid='.$data['id'].'">'.$data['kategori'].'</a><br/></li>';
}
echo '</ul>';
?>
here's the code and it shows me :
Notice: Undefined index: catid in C:\Program Files\xampp\htdocs\pbd\include\kategori_berita.php on line 9
I'm still new at PHP, so please if you could teach me I would appreciate it :twisted:
thanks!