PHP之路
来源:互联网 发布:2015编程语言排行 编辑:程序博客网 时间:2024/06/10 13:16
if(!empty($_POST['submit'])){
$cid = intval($_POST['cid']);
$uid = intval($_POST['uid']);
$count = 0;
$count= $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM ".tname('estimates')." WHERE cid='$cid' AND uid='$uid'"));
if($count>10 ){
showmessage('the_shangpingcishu_succuss','commodity.php?ac=three','2');
}
else{
$setarr = array(
'cname' => getstr($_POST['cname'],50),
'cid' => intval($_POST['cid']),
'uid' => intval($_POST['uid']),
'username' => getstr($_POST['username']),
'price' => intval($_POST['price']),
'ctime' => time()
);
inserttable('estimates',$setarr, 0, true);
showmessage('the_commoditypingjia_succuss','commodity.php?ac=three','1');
}
}
- PHP高手之路
- PHP之路
- 开始PHP之路
- php学习之路
- PHP之路
- php学习之路
- php学习之路
- php学习之路
- PHP学习之路
- PhP之路
- PHP成长之路
- php学习之路
- php学习之路
- PHP学习之路
- 初学PHP之路
- php修行之路
- PHP学习之路
- php之路
- Spring3.0 Jar包大概介绍
- gedit与vi
- STB 技术杂谈(3)——软体产业
- WPF新手之模板重用
- 游戏引擎
- PHP之路
- 引擎
- win7 X64 AMD 安装MatLab
- WPF新手之控件联动
- CxImage在VC2005中更改图片的尺寸(调整控件与图像一样尺寸)
- hibernate 疑难异常及处理
- 如何成为一名优秀的数据库开发专家
- Sql时间函数
- WPF新手之控件多对一的绑定