php数据库插入数据问题,死活插不进去,求大神指导
本帖最后由 hipyaohop 于 2013-06-28 10:12:39 编辑 jquery代码:
$(.detailtextable).click(function () {
$s_keshi=$(.cla_title).attr(alt);
$s_month=$(.nyr_center).attr(alt);
$s_day=$(this).attr(alt);
$.ajax({
type: post,
url: http://localhost/hos1/orderinsert.php,
data: {skeshi:$s_keshi,smonth:$s_month,sday:$s_day},
success: function(){
alert(1);
}
});
});
$s_day,$s_keshi..里面都有数据,alert过了.
orderinsert.php代码:
php 数据库 mysql jquery 分享到:
------解决方案--------------------
$sql=insert into orderlist (keshi,month,day) values('$pkeshi','$pmonth','$pday');