1

I want to display values in a html table by fetching data from database, in each row of a table i want to show 4 columns I want to display it like this => http://buyitnaija.com/index.php but it is actually displaying http://buyitnaija.com/index1.php

so far I have done this :

$category = mysql_query("SELECT * FROM category LIMIT 0, 4");
while($row = mysql_fetch_array($category))
{
$cat_name = $row['Category'];?>
<table class="white" width="60%" align="center">
<tr>
<td style="font-size:18px; color:#FFFFFF">
<a href="<?=$_SERVER['PHP_SELF']?>?cat=<?echo $cat_name;?>"><? echo $cat_name;?></a>
</td>
<?}?>
</tr>
</table> 
4

0 回答 0