最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP + jquery ajax无刷新投票实例
时间:2014-07-04 编辑:简简单单 来源:一聚教程网
前台:
代码如下 | 复制代码 |
$sql="select dede_vote.aid,dede_vote.spec,dede_vote.votename,dede_vote.arcpic,dede_vote.info, ?>
words" content="{dede:global.cfg_keywords/}" />
编号:=$row['aid']?> =$row['votename']?> =$row['info']?> 投票人数:=$row['totalcount']?> 投上一票: $i++;}?> |
代码:
代码如下 | 复制代码 |
error_reporting(0); $aid=$_POST["pollid"]; $totalcount=$_POST["totalcount"]; $sql= "update dede_vote set totalcount='$totalcount'+1 where aid='$aid'"; mysql_query($sql) or die(mysql_error()); $query=mysql_query($sql1); while($row=mysql_fetch_assoc($query)) { echo $row['totalcount']; ?> |
-
下一个: WordPress禁用目录浏览配置方法
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31