I have a call to a function on my index page:
display_categories();
the function display_categories looks like this
function display_categories()
{
$conn = db_connect();
$query = "select catid, catname from categories";
$result = @($query);
print_r($result);
echo "<ul>";
while ($row = mysql_fetch_array($result)) {
$url = "show_cat.php?catid=".($row["catid"]);
$title = $row["catname"];
echo "<li>";
do_html_url($url, $title);
}
echo "</ul>";
echo "<hr>";
}
I have print_r($result) so that I may view my query
but the repsonse I am getting is:
"Resource id #2"
you can see this @ http://www.caillouette.com/CHAPTER26a/index.hml
The categories show up just fine but their links aren't working.
I just to view the array "$result"
thanks