我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

一次显示一个?

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.

近期文章

  • 在php和java中需要相同的字符串比较功能
  • 查找当前页面是否在Zend Navigation对象中
  • 多页PHP怎么样?
  • 如何通过JS / PHP单击列表项本身将项目从2个列表(从不同区域)移动到1个列表?
  • 我的输出显示不止一次我想在显示下面给出的代码后显示它
  • PHP - 旋转HEX颜色值(例如,将所有颜色换成“next”hex)
  • 将xampp连接到MongoDB
  • 是否可以在不将数据保存在RAM中的情况下将文件流入和流出服务器?
  • 使用SWFUpload和Amazon S3进行文件大小
  • PHP文件上传
  • .net相当于php preg_replace
  • 轻松更新Web应用程序多服务器
  • Ajax:区分旧帖和新帖
  • 获取draw_calendar()函数的日期字符串
  • 如何从网页下载并显示前200或250个字符?
  • 使用referer标头加载图像
  • 数组到命名变量
  • 有没有C ++ SOLR库?
  • 比较两个数组值
  • 如何在Symfony中使用过滤器操作?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华