colinkites2000
08-07-2009, 03:11 PM
Hello,
I've been trying to import data into a simple table into PHPmyadmin that will dictate the location of my products. There are 2 columns; product_id and location.
When I try to select the data based on the location, it does not find anything when I use;
WHERE location = 'index2'
However when I use
WHERE location LIKE "%index2%"
the data is found.
I checked the data and there are no visible spaces before and after. When I delete the location record by clicking NULL in PHPmyadmin and then re-type the exact same data, it will select. Does anyone have any idea why this might be happening and / or how I can fix it?
Best,
C
I've been trying to import data into a simple table into PHPmyadmin that will dictate the location of my products. There are 2 columns; product_id and location.
When I try to select the data based on the location, it does not find anything when I use;
WHERE location = 'index2'
However when I use
WHERE location LIKE "%index2%"
the data is found.
I checked the data and there are no visible spaces before and after. When I delete the location record by clicking NULL in PHPmyadmin and then re-type the exact same data, it will select. Does anyone have any idea why this might be happening and / or how I can fix it?
Best,
C