在线等.....MYSQL问题!!!插入不了数据!!!???? 在phpmyadmin中运行一下看看是不是有错. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 函数没用错?mysql_query($sql);??? ('$user_name','$user_password','$record_type','$member_type','$name_in_credit_card','$Email','$Phone','$address1','$address2','$City','$Province','$Country','$Zipcode','$user_Parents_id')";确定你的这些变量都获得了相关的values??? 提示成功插入-----在哪儿提示插入成功??执行mysql_query($sql) or die($sql);如果数据插入有错误会打印sql语句 echo mysql_error();看看有没有提示 ......tab_user(user_name,user_password,record_type,member_type,name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,Zipcode,user_Parents_id,) values......好像你的user_Parents_id后面多了个逗号符:[,]不知道是不是这个的原因? 还有确定你的tab_user表中有user_name,user_password,record_type,member_type,name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,Zipcode,user_Parents_id这些字段 $sql="INSERT into tab_user(user_name,user_password,record_type,member_type,name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,Zipcode,user_Parents_id) values('".$user_name."','".$user_password."','".$record_type."','".$member_type."','".$name_in_credit_card."','".$Email."','".$Phone."','".$address1."','".$address2."','".$City."','".$Province."','".$Country."','".$Zipcode."','".$user_Parents_id."')";碰到这种问题尽量自己耐心的去测试一下,测试多了以后遇到同种问题就有体会了! 在执行前看看语句是什么echo$sql="INSERT into tab_user(user_name,user_password,record_type,member_type,name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,Zipcode,user_Parents_id) values('$user_name','$user_password','$record_type','$member_type','$name_in_credit_card','$Email','$Phone','$address1','$address2','$City','$Province','$Country','$Zipcode','$user_Parents_id')";看看是不是你要的数值 mac系统下php+mysql+apache,mail()发不出邮件,跪求解决方法 数组里值相加 我做的新闻搜索引擎 php如何自动变化下载链接? PHP新手,有问题 关于如何禁用IE后退按钮 js里能写html? 80分求图片上传,文件名存入数据库代码 求专题文章解决方案 问题有点莫名其妙阿帮忙看一下~~~ apache不稳定,运行PHP时,会出现服务中止现象.究竟是什么原因呢。 一个页面里有一个iframe,iframe包的是一个远程的文件,远程的文件怎样才能取到这个父窗口的地址呢?
mysql_query($sql);
???
$name_in_credit_card','$Email','$Phone','$address1','$address2','$City','$Province','$Country','
$Zipcode','$user_Parents_id')";
确定你的这些变量都获得了相关的values???
-----
在哪儿提示插入成功??
执行mysql_query($sql) or die($sql);
如果数据插入有错误会打印sql语句
看看有没有提示
tab_user(user_name,user_password,record_type,member_type,
name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,
Zipcode,user_Parents_id,) values
......
好像你的user_Parents_id后面多了个逗号符:[,]
不知道是不是这个的原因?
确定你的tab_user表中有
user_name,user_password,record_type,member_type,
name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,
Zipcode,user_Parents_id
这些字段
Zipcode,user_Parents_id) values
('".$user_name."','".$user_password."','".$record_type."','".$member_type."','
".$name_in_credit_card."','".$Email."','".$Phone."','".$address1."','".$address2."','".$City."','".$Province."','".$Country."','".$Zipcode."','".$user_Parents_id."')";碰到这种问题尽量自己耐心的去测试一下,测试多了以后遇到同种问题就有体会了!
echo
$sql="INSERT into tab_user(user_name,user_password,record_type,member_type,
name_in_credit_card,Email,Phone,address1,address2,City,Province,Country,
Zipcode,user_Parents_id)
values
('$user_name','$user_password','$record_type','$member_type','
$name_in_credit_card','$Email','$Phone','$address1','$address2','$City','$Province','$Country','$Zipcode','$user_Parents_id')";看看是不是你要的数值