I need a simple way to show that results are loading..
from database, while the page loads. I am not using jQuery to do this.
What I tried now is: I put a <div>
tag with loading text in it and using JavaScript I made the display to none
after the whole while loop. But I don't get to see the text at all.
<div id="loading">Loading Results...</div>
I put the above code just after the body tag.
I put the below code right after the while loop ending.
echo "<script>document.getElementById(\"loading\").style.display = \"none\"</script>";