I have a MYSQL database that I populated with some questions and answers. Kinda' a amatuer knowledge base. Anyhew, I created some php scripts to search the database for keywords inside the fields on the database. It was working fine last week, ONLY displaying fields where there was a match of the keyword.
Well, this morining, I ran upgraded from SuSe 7.3 Pro to SuSe 8.2 Pro. For some reason, I had to reinstall phpMyAdmin ( I think I downloaded ver 2.5.0 ?). Anyway, since the upgrade, my php scripts don't work. When I do a search of the database, it retrieves the ENTIRE DATABASE instead of only where it found a match of the search string ?????
When I was writing the php, I originally had something on the order of
"SELECT where <field> ='searchstring' in the script to search, but this would only return a result if the search string was the only word in the field. I then modified it using a wild card and the LIKE function
"SELECT WHERE <field> LIKE '%searchstring%'"
Why would upgrading the OS change anything having to do with my php not functioning correctly ???
Any help would be greatly appreciated.
Thanks,
Vinny