Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Showing everything..

Quote Reply
Showing everything..
I've jsut written some code to print out all the variables in the $GLOBALS array..and then I was trying to print out everything in $links_loop. For some reason, this code isn't working correctly;

Code:
<? foreach ($GLOBALS as $item => $var) { echo "&nbsp;&nbsp;$item => $var<BR>"; }

echo "now array..";

foreach ($links_loop as $thing) {

foreach ($links_loop['$thing'] as $loop => $val) { echo "&nbsp;&nbsp;$loo => $val"; }

}

?>

For some reason, the last foreach is brining up an error. How would I refer to the sub-arrays within $globals?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Showing everything.. Andy 4307 Jul 2, 2002, 2:01 PM
Thread Re: [Andy] Showing everything..
Andy 4214 Jul 2, 2002, 2:27 PM
Thread Re: [Andy] Showing everything..
Paul 4187 Jul 2, 2002, 4:13 PM
Post Re: [Paul] Showing everything..
Andy 4189 Jul 3, 2002, 1:24 AM
Post Re: [Andy] Showing everything..
brewt 4183 Jul 2, 2002, 4:35 PM