When I want to do a search against a specific country then I get results for that country.
However if I do a search for All. I get no results found? If I then just do a search for the word destination I find everything?
I want to be able to get the same results if I search for All as I would if I searched for the word destination?
I also need to still keep the same functions that work already so if I search for a specific country I get the right results.
I hope that makes some sense…
I have attached the code below that I think is causing the problem.
Try using a while loop, instead of do…while - your code runs one time before the mysql_fetch_assoc() is actually called to get a row from results.
Hope this helps!
That unfortunately is bad advice. Since he is calling mysql_fetch_assoc() prior to the loop, he needs to use a do-while instead of a while loop, otherwise, his results will never show the very first row (as shown when combining the OP’s first and second posts on this thread).