knotbuilder Posted October 16, 2009 Share Posted October 16, 2009 I have a store locator - http://www.evolvegolf.com/storelocator.html. I want to be able to add the phone number to the out put. I added the phone to the db, and to the SQL: // Start XML file, echo parent node echo "<markers>\n"; // Iterate through the rows, printing XML nodes for each while ($row = @mysql_fetch_assoc($result)){ // ADD TO XML DOCUMENT NODE echo '<marker '; echo 'name="' . parseToXML($row['name']) . '" '; echo 'address="' . parseToXML($row['address']) . '" '; echo 'phone="' . parseToXML($row['phone']) . '" '; echo 'lat="' . $row['lat'] . '" '; echo 'lng="' . $row['lng'] . '" '; echo 'distance="' . $row['distance'] . '" '; echo "/>\n"; } I also added it to the JS... I just don't know what I am missing. thanks in advance for any help. Quote Link to comment https://forums.phpfreaks.com/topic/177932-add-phone-number-to-output/ Share on other sites More sharing options...
fenway Posted October 17, 2009 Share Posted October 17, 2009 I have no idea what the mysql issue is. Quote Link to comment https://forums.phpfreaks.com/topic/177932-add-phone-number-to-output/#findComment-938862 Share on other sites More sharing options...
knotbuilder Posted October 19, 2009 Author Share Posted October 19, 2009 Thanks for the help! You guys rock! Quote Link to comment https://forums.phpfreaks.com/topic/177932-add-phone-number-to-output/#findComment-939640 Share on other sites More sharing options...
fenway Posted October 19, 2009 Share Posted October 19, 2009 Thanks for the help! You guys rock! Are you sure you posted in the correct thread? Quote Link to comment https://forums.phpfreaks.com/topic/177932-add-phone-number-to-output/#findComment-939669 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.