Question

I have a script on my website that shows messsages from a mysql database. Now I want to make it so it only pops up one message at a time. Anyone want to shed some light on this?

Windows Vista
PHP - Mysql - Ajax - JS

I can't really provide a code sample but here is some pseudocode:

if(ID == 1)
{ 
// SHOW  ID++;
}

// Show #2 

No correct solution

OTHER TIPS

Set up a callback that pulls and pops up the new message, then schedules the callback again if a message was successfully pulled and shown.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top