Jump to content

[SOLVED] Function Not Working


monkeypaw201

Recommended Posts

i have this function:

 

<?php
function topmenu()
{
do {
echo $row_topmenu['link'];
} while ($row_topmenu = mysql_fetch_assoc($topmenu));
}
?>

 

and when i place this:

 

<?php topmenu(); ?>

 

i get this error:

 

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in index.php on line 87
Link to comment
https://forums.phpfreaks.com/topic/105983-solved-function-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.