3 回答
TA贡献1836条经验 获得超4个赞
检查一下-
<?PHP
include("db.php");
$sql="INSERT INTO registration (`user_name`,'user_email','user_contact_no','user_address','user_dateofbirth','user_gender','user_photo')
VALUES ('".$_POST['fullname']."','".$_POST['userid']."','".$_POST['cno']."','".$_POST['add']."','".$_POST['dateofbirth']."','".$_POST['gender']."','<img src= /upload/'".$img.">')";
?>
TA贡献1827条经验 获得超9个赞
试试这个 -
<?PHP
include("db.php");
$fullname = $_POST['fullname'];
$userid = $_POST['userid'];
$cno = $_POST['cno'];
$add = $_POST['add'];
$dateofbirth = $_POST['dateofbirth'];
$gender = $_POST['gender'];
$sql="INSERT INTO registration (`user_name`,'user_email','user_contact_no','user_address','user_dateofbirth','user_gender','user_photo')
VALUES ('".$fullname"','".$userid."','".$cno."','".$add."','".$dateofbirth."','".$gender."','<img src= /upload/'".$img.">')";
?>
- 3 回答
- 0 关注
- 182 浏览
添加回答
举报