Using variables with simplexml

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bob1234
Forum Newbie
Posts: 5
Joined: Fri Oct 31, 2008 3:48 pm

Using variables with simplexml

Post by bob1234 »

When you are using simplexml, are you allowed to print using a varible in the path?


Test prints 3 times (which it should because there are 3 display courses) but the second echo statment prints nothing. IS something invalid about it?
Last edited by bob1234 on Fri Oct 31, 2008 4:05 pm, edited 1 time in total.
bob1234
Forum Newbie
Posts: 5
Joined: Fri Oct 31, 2008 3:48 pm

Re: Using variables with simplexml

Post by bob1234 »

Nevermind. It was a really dumb error on my part. I had to add one more level to the statement
Post Reply