What I am looking into is:-
I do have a search page say index page. and the action file is search.php. when I fire a query search.php will start processing on what I searched.
structure of search.php
- it uses $_GET function to retrieve query from index page.
- first it will search in MySQL database.
- IF yes then display the result from MySQL database.
- IF null then do the process to get the result for the query and Insert into MySQL database
what I need is if the query result isn't in the database then it should show a progress message saying "Please Wait We have come across this query first time hence we are updating our database" or something which is suitable.
How do I do it in PHP??