-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Clare Media wrote:
Guys really in need of some assistance here.
I am reading an xml file and want to loop through the entire file and
display the information.
Unfortunately I am only showing 1 item. how can I go about showing all news
item?
First, are you sure there is data in $my_array?
Add this after you set the array:
echo pre.print_r($my_array)./pre;
You'll need to loop through the array , writing each line in the file at
a time.
Something like:
//open the file stuff here
foreach ($my_array AS $values)
{
fputs($fp,
:
Subject: RE: [PHP-DB] array issue
08/17/2003 11:33
?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: August 17, 2003 11:48 AM
To: Aaron Wolski
Cc: 'PHP-DB'; 'OpenSource'
Subject: RE: [PHP-DB] array issue
This may or may not make sense for your issue. but if you have the
whole
array in memory you can
PROTECTED]
Cc: 'PHP-DB' [EMAIL PROTECTED]; 'OpenSource' [EMAIL PROTECTED]
Sent: Sunday, August 17, 2003 10:04 AM
Subject: RE: [PHP-DB] array issue
Good point and nice find, Jeff!
I wasn't sure where he was going with the data.. was he trying to save
the actual array, intact, for say a chaching
by many users.
Aaron
-Original Message-
From: OpenSource [mailto:[EMAIL PROTECTED]
Sent: August 17, 2003 12:28 PM
To: Aaron Wolski
Cc: PHP-DB; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] array issue
Importance: High
Hey guys thanks a lot
your method worked perfect Aaron, thanks
On Monday 20 January 2003 17:50, Dave Carrera wrote:
I have nearly got this working but it dose not seem to loop though or
return the result
I have done something wrong and I ask one of you coders that are much
cleverer that I to glance over my code to see the obvious mistake / s.
Can you