I have searched for this problem on google and all solutions I have tried dont work
I am new at PHP and used this method before but for some reason this one is giving me the run around.
it echo's the text "Special Occasions" but the link it refers to tries to load the view_gallery.php page as
www.myweb.com/view_gallery.php?cat=Special
when it should be:
www.myweb.com/view_gallery.php?cat=Special Occasions
What am I doing wrong here, i know its something stupid im doing.
<?php
$sqlr="SELECT * FROM categories ORDER BY id ASC";
$resultr=mysql_query($sqlr);
while ($rowd=mysql_fetch_array($resultr)) {
$idr = $rowd['id'];
$category = $rowd['category'];
echo "
<td width=120 height=19 valign=top><center class=style3>
<p><a href=view_gallery.php?cat=" . $rowd['category'] . " style=color: #FFFFFF>$category</a></p>
</center></td>";
}
?>
Any suggestions ?