This is the code I am useing to create a link from my database and send the varialbe $catid.
function display_categories($cat_array)
{
if(!is_array($cat_array))
{
echo "No categories currently available.<br>";
return;
}
echo "<ul>";
foreach($cat_array as $row)
{
$url = "show_cat.php?catid=".($row["catId"]);
$title = $row["catName"];
echo "<li>";
do_html_url($url, $title);
}
echo "</ul>";
echo "<hr>";
}
Everything works fine except that I cant echo $catid varialbe on any page. The URL looks llike this:
http://panhandleguitar.com/show_cat.php?catid=5?
If I substitute the catId from my database table things work correctly, I just cat get it to work using $catid variable.