daveGivesPHPaShot Posted August 28, 2010 Share Posted August 28, 2010 Hello All, I just set up a test database and had a PHP script returning XML files but only on one of the columns. So, to isolate my problem, I went back into PHPMyAdmin to check if the problem was with the data base and perhaps it is. I have a column called 'name' and I can select for rows where name = X. That works fine. But I get zero results when I do select statements for any other rows. The other rows contain Null, 0, and float numbers (latitude and longitude data for ex 37.1231). Perhaps it's the way I set up the data? Thanks in advance for any help. Link to comment https://forums.phpfreaks.com/topic/211963-msql-query-works-on-one-column-but-gives-0-results-for-queries-on-other-columns/ Share on other sites More sharing options...
kickstart Posted August 29, 2010 Share Posted August 29, 2010 Hi Can you post the table layout, some sample data and the statements that work / don't work All the best Keith Link to comment https://forums.phpfreaks.com/topic/211963-msql-query-works-on-one-column-but-gives-0-results-for-queries-on-other-columns/#findComment-1104929 Share on other sites More sharing options...
daveGivesPHPaShot Posted August 30, 2010 Author Share Posted August 30, 2010 Thank you Kickstart, I should have posted this in a Google maps forum, as that is what I am trying to do. But perhaps this post could help someone else. So I'll attach a screenshot of data structure. In this test database, I am unable to run searches to pull lat and lng, perhaps because they are floating numbers. Perhaps my select statement needs to contain some escapes to get around the periods in the floating numbers. I was just running super-simple searches within PHPMyAdmin, such as select where lat = 'X'. Thanks! [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/211963-msql-query-works-on-one-column-but-gives-0-results-for-queries-on-other-columns/#findComment-1105174 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.