What i'm trying to do is create a dashboard with jQuery ajax calls to a PHP page to populate fields on the dashboard. I've done lots of ajax with jquery in the past but i'm struggling to get my head around this problem.
My desired HTML:
<div id="phase1">
</div>
<div id="phase2">
</div>
<div id="phase3">
</div>
In my PHP page i have 3 variables - $phase1, $phase2 and $phase3. I'd imagine using setInterval to keep it "live" to populate the 3 divs with their respective PHP variables. The bit i'm scratching my head about is how to tell the PHP page that i'd like to grab variable $phase1 from it and distinguish between the 3 variables so they fill the right divs. my php page is called db.php!
Can anyone think how i could construct such a ajax call...