show or hide div based on mysql count value without reloading page

show or hide div based on mysql count value without reloading page

good day everyone. I am newbie to programming and trying to build a web site. In this site, i want to show or hide a div based on the row count returned by mysql table without reloading the page. If the row count is 0, the div should be hidden. If it is greater than 0, the div should be shown without reloading the page instantly. Any help would be greatly appreciated. Thanks in advance. Good for all.