Hello, how are you all doing? I encountered an issue - I have a website with a div named "mosaicdiv". This div contains sub-divs with links and images. I want these images and links to change automatically at random intervals to others from the database. So, I attempted to achieve this using ajax:
<? $fdata = DisplayFeaturedMembers(15); ?>
<div id="mosaicdiv" style="width:70%; height: 330px; float:left;">
// More HTML code here
The current solution is causing an immediate spike in server load. Is there something wrong with the code provided above? Should I consider creating a JavaScript array instead and work with that? If so, could you offer some guidance on that?
Thank you very much!