I'm getting the following error:
Notice: Use of undefined constant navtop - assumed 'navtop' in c:\program files\easyphp\www\a_new\include\tmp197mstmpb.php on line 53
The following is my code where it is erroring out:
$qid = db_query("
SELECT navside, navtop
FROM sidebar
ORDER BY sortorder
");
while($gc_array = db_fetch_array($qid))
{
$nav_top = $gc_array[navtop];
}
I'm trying to get the value of the field navtop within each loop.
Any help would be greatly appreciated. I know data is being returned because I can get a count of 4 which is expected.
Thanks!