您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php数据库插入数据有关问题,死活插不进去,求大神指导

2025/1/22 4:07:51发布22次查看
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');
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product