PDA

View Full Version : php is not generating xml


knotbuilder
08-21-2009, 05:16 PM
I am not sure if this should be in the xml or php forum so please feel free to move it if you need to.

I am trying to build a store loctor using google's example here (http://code.google.com/apis/maps/articles/phpsqlsearch.html#createtable), I have created the db and table as per the directions, how ever when I try and call the PHP script from the browser to make sure it's producing valid XML all I get is a blank screen, see here (http://www.evolvegolf.com/phpsqlsearch_genxml.php). I am not sure if there is a problem with the php or the db.

any thoughts would be greatly appreciated.

thanks!
CM

tomws
08-21-2009, 05:43 PM
A blank screen usually means a PHP error. Turn on error reporting for details.

knotbuilder
08-21-2009, 06:11 PM
I don't receive any errors. when i look at the page source this is what I get:


<?xml version="1.0" ?>
<markers />

tomws
08-21-2009, 06:15 PM
I'd say the blank page makes sense, then. You'll need to debug the PHP. Try to isolate the problem area with some echo/print/die statements.

knotbuilder
08-21-2009, 06:22 PM
okay thanks for helping pin point the problem. I am off toask the question in the php forum.

Alex Vincent
08-21-2009, 09:05 PM
Closing per cross-posting policy:
http://codingforums.com/showthread.php?t=175131