开发者

PHP raising error about code outside of PHP begin / end characters

开发者 https://www.devze.com 2023-02-09 07:47 出处:网络
I have a PHP page that keeps raising the error PHP Parse error: syntax error, unexpected \'<\' in /home/zach/public_html/date/giftsent1.php on line 30

I have a PHP page that keeps raising the error

PHP Parse error: syntax error, unexpected '<' in /home/zach/public_html/date/giftsent1.php on line 30

The funny thing is, line 30 is in the HTML. It is开发者_如何学JAVA after the PHP end characters ( ?> ).

I have added the code to Pastebin:

http://pastebin.com/Dsh0KwdA


You are missing the ending double quotes in the query on line 18:

$query = "INSERT INTO gifts (`Gift`, `User`, `Type`, `From`, `Status`) VALUES ('$gid', '$val', '$ext', 'Pending');
0

精彩评论

暂无评论...
验证码 换一张
取 消