Jan 4, 2008 #1 tcardoso Programmer Joined Jan 31, 2005 Messages 56 Location PT Hi, this query: Code: SELECT * FROM `table` WHERE `field` like '%Some Name%' give me empty result and this one Code: SELECT * FROM `table` WHERE `field` like '%Some%Name%' gives me the "Some Name" Guy Why does spaces aren't working? Thanks
Hi, this query: Code: SELECT * FROM `table` WHERE `field` like '%Some Name%' give me empty result and this one Code: SELECT * FROM `table` WHERE `field` like '%Some%Name%' gives me the "Some Name" Guy Why does spaces aren't working? Thanks
Jan 4, 2008 #2 towerbase Programmer Joined Jul 31, 2002 Messages 1,053 Location GB I suspect that you either have two or more spaces in your SQL query between Some and Name or your data has two or spaces between Some and Name. It is possible that another type of white space character is there but I suggest this less probable. Andrew Hampshire, UK Upvote 0 Downvote
I suspect that you either have two or more spaces in your SQL query between Some and Name or your data has two or spaces between Some and Name. It is possible that another type of white space character is there but I suggest this less probable. Andrew Hampshire, UK
Jan 4, 2008 Thread starter #3 tcardoso Programmer Joined Jan 31, 2005 Messages 56 Location PT lol.... sorry for that, my "newbiece". damm user, put two spaces under is name and wasn't appearing on search for others Thanks mate Upvote 0 Downvote
lol.... sorry for that, my "newbiece". damm user, put two spaces under is name and wasn't appearing on search for others Thanks mate