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!
What I trying to achieve is excluding the some of the data from the sql query so that I can add them as attributes please can someone help the data I am trying to exclude will not exclude from the elements.
Last edited by Benjamin on Sat Jul 03, 2010 9:46 pm, edited 1 time in total.
Reason:Added [syntax=php] tags.
Hi I just noticed that the if statement doesn't allow the sections Region, Longitude, Latitude. Which is what I wanted but unfortunately that data from these fields are still entered but they have been inputted into other section tags.
<Restaurant Region="Aberdeen C" Latitude="57.1467635" Longitude="-2.105849"><CompanyName>The Stage Door Restaurant</CompanyName><Address>26 North Silver Street, Aberdeen, Aberdeen City AB10 1RL, United KingdomAberdeen C</Address><Phone>01224 642 11157.1467635-2.105849</Phone></Restaurant>
You can see Aberdeen C is entered right after the address and the longitude and latitude is entered after the phone number.