我是PHP的新手,我在插入cus_id =客户ID方面遇到了问题,我想在通知和预订表中的两个表中保存客户ID。这是我的代码。请评论并提出建议。因为我是PHP新手。如果我错了,请不要低档我谢谢你。顺便说一句,“函数已添加”它已经可以在数据库中保存cus_id,唯一的问题是cus_id没有插入的“函数通知”。
function addsched($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k)
{
mysql_query("INSERT reservation(type,fname,mname,lname,wfname,wmname,wlname,cfname,res_type,status,cus_id)
values
('$a','$b','$c','$d','$e','$f','$g','$h','$i','$j','$k')");
mysql_query("INSERT INTO notification (cus_id,notification)
VALUES('$k','Thank you for reserving in Saint Michael Parish. Your
Current Reservation is still ( PENDING ) ...')");
}
答案 0 :(得分:0)
试试这个
mysql_query("INSERT INTO notification (cus_id,notification)
VALUES('$k','Thank you for reserving in Saint Michael Parish. Your
Current Reservation is still ( PENDING ) ...'");