有人帮我解决这个问题 [英] Someone help me fix this please
本文介绍了有人帮我解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到错误
解析错误:语法错误,意外T_VARIABLE in 跨度> C:\xampp\htdocs\CorkiWebsol\SM_Manila\slotAreserve.php上线<跨度类= 代码位> 14 跨度>
这是我的代码
require(' dbconx.php'跨度>);
$ fullname = $ _ POST [' fullname'];
$ adress = $ _ POST [' adress'];
$ email = $ _ POST [' email'];
$ contact = $ _ POST [' contact'];
$ date = $ _ POST [' date'];
$ starttime = $ _ POST [' starttime'];
$ endtime = $ _ POST [' endtime'];
$寄存器= <跨度类= 代码串> 跨度> <跨度类= 代码串> INSERT INTO manilaslota(全名,ADRESS,电子邮件,联系人,约会,开始时间,结束时间)VALUES( '$全名', '$ ADRESS', '$电子邮件', '$接触', '$日期', '$开始时间', '$结束时间')跨度> <跨度类= code-keyword>或 die
$ result = mysqli_query($ db_link,$ register);
header(' location:MANILARESERVATION.html');
mysqli.close($ db_link);
?>
我尝试过的事情:
i已尽我所能。
解决方案
fullname =
_POST [' fullname'];
ADRESS =
i got the error
Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\CorkiWebsol\SM_Manila\slotAreserve.php on line 14
here is my code
require('dbconx.php');
$fullname=$_POST['fullname'];
$adress=$_POST['adress'];
$email=$_POST['email'];
$contact=$_POST['contact'];
$date=$_POST['date'];
$starttime=$_POST['starttime'];
$endtime=$_POST['endtime'];
$register="INSERT INTO manilaslota(fullname,adress,email,contact,date,starttime,endtime) VALUES('$fullname','$adress','$email','$contact','$date','$starttime','$endtime')" or die
$result=mysqli_query($db_link,$register);
header('location:MANILARESERVATION.html');
mysqli.close($db_link);
?>
What I have tried:
i have tried everything i can.
解决方案
fullname=
_POST['fullname'];
adress=
这篇关于有人帮我解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文