unkown php error please help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
popdrop
Forum Newbie
Posts: 1
Joined: Fri Oct 08, 2010 8:29 am

unkown php error please help

Post by popdrop »

Me and my friend have been having trouble while making our site.
I get this error when trying the upload feature "Parse error: syntax error, unexpected T_VARIABLE in /home/a6065654/public_html/upload.php on line 3"
Here is all the code for the site: http://cl.ly/d184484c54d399b6bbb8
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: unkown php error please help

Post by Eran »

It's not really unknown, if you'd google it you'd find thousands of similar cases. You have a syntax error, probably the line before it does not close with a semi-colon. By the way, sending people to download your code is rather suspicious, you can post the relevant parts here on the forums.
internet-solution
Forum Contributor
Posts: 220
Joined: Thu May 27, 2010 6:27 am
Location: UK

Re: unkown php error please help

Post by internet-solution »

missing semicoln in lines 2 and 3

Code: Select all

$name = $_POST ['name']
$comic = $_POST ['comic']
Post Reply