Jump to content

MSQL query works on one column but gives 0 results for queries on other columns


daveGivesPHPaShot

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.