문제

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 

올바른 솔루션이 없습니다

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top