<?php
$querycat=mysql_query("Select * from categories order by category");
echo mysql_error();
while($rowpcat=mysql_fetch_array($querycat)){
$adr=str_replace(" ","-",$rowpcat['category']);?>
<tr>
<td width="15px"><img src="images/ok.png" alt="" /></td>
<td width="180px"><?php echo '<a href="' . $site . $path . 'c/' . $adr . '/1/">' . $rowpcat["category"] . '</a>';?></td>
<td width="10px">80</td>
</tr>
<?php
}
?>