PHP raising error about code outside of PHP begin / end characters
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');
精彩评论