PHP question

Don Erickson derick at zeni.net
Mon Apr 5 02:10:39 CDT 2004


Brian D wrote:

 >Don Erickson wrote:
>>I'd try something like:
>>
>>
>>while ($DYN_menu[$i]) {
>>     foreach ($DYN_menu[$i] as $URL => $TITLE) {
>>         echo "<td><a
>>href="$URL">$TITLE</a>&nbsp;&nbsp;&nbsp;</td>";
>>     }
>>$i++;
>>}
> 
> I'm not sure what you're doing here, but I don't think
> this would work for my setup. What are you doing in
> this snippet?

I thought that $DYN_menu was an array.  If it held values of the type:

$DYN_menu[0] = array("http://here"=>"HERE");
$DYN_menu[1] = array("http://there"=>"THERE");
$DYN_menu[2] = array("http://everywhere"=>"EVERYWHERE");

then the above snippet would spit out your links.

Regards,

-Don




More information about the Kclug mailing list