I have a page that has html and javascript code for all the layout and graphics. In addition to that, I also have the PHP code that load some data from MySQL database. Now the question is, if the query to load data from the database failed to match any, I want to stop executing the whole PHP block of code but still executing the html and javascript code that comes after the PHP block of code. I'm currently use the exit; to stop the executing of the PHP block of code; however, I found that my menu, which I use javascript, does not show up at the bottom. Instead it has been pushed to show half of the menu bar on the top of the page. Here's the page I'm talking about. If click on the button and the page failed to match anything, you'll see the problem I am facing.
Any suggestion is much appreciated.
Charlie