> while($db->next_record())
> {
> $menu[]["name"] = $db->f("name");
> $menu[]["url"] = $db->f("topic_id");
> }

Why not use a for loop instead?

for($i = 0; $db->next_record(); $i++) {
   $menu[$i]["name"] = $db->f("name");
   $menu[$i]["url"] = $db->f("topic_id");
}

Then you can access them through another loop.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
Reserve your abuse for your true friends.
             -- Larry Wall in <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to