Jon,
120 apostrophes and deletions later I can confirm that that wasn't it!
Would you believe it moved on when I took the quotes away from DOCUMENT ROOT
? And wants double quotes round 'echo' strings
And I have had to take more quotes away! But now I am getting this, and I
can't remember how I solved this on other files.
unexpected $end in c:\easyphp1-7\www\books.php on line 118
the closing '?>' is line 117
Joseph
> Joseph,
>
> > This is the foreach:
> > foreach ($xml_tree[PRODUCTINFO][0][DETAILS] AS $product) {
> >
> > Followed by a set of lines which are variations on this cut and paste
> > $product_manufacturer = $product[MANUFACTURER][0][VALUE];
>
> Try sticking quotes round the array indices (the bits in square brackets):
>
> foreach ($xml_tree['PRODUCTINFO'][0]['DETAILS'] as $product) {
>
> You may not need then on the middle one if it's only ever numeric.
>
> It's also worth checking your array is being filled correctly before the
> foreach() - a good test is to use print_r, like this:
>
> echo "<pre>";
> print_r ($xml_tree);
> echo "</pre>";
>
> HTH,
> Jon
>
>
> ____ . The WDVL Discussion List from WDVL.COM . ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
> Send Your Posts To: [EMAIL PROTECTED]
> To set a personal password send an email to [EMAIL PROTECTED] with the
words: "set WDVLTALK pw=yourpassword" in the body of the email.
> To change subscription settings to the wdvltalk digest version:
> http://wdvl.internet.com/WDVL/Forum/#sub
>
> ________________ http://www.wdvl.com _______________________
>
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to %%email.unsub%%
>
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
>
> Please include the email address which you have been contacted with.
>
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.