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

81 views Asked by At

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 after the PHP end characters ( ?> ).

I have added the code to Pastebin:

http://pastebin.com/Dsh0KwdA

1

There are 1 answers

1
AudioBubble On BEST ANSWER

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');