Parse error help

C++, C#, Java, PHP, ect...
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Parse error help

Post by hallsofvallhalla »

please give us what line is 163 and what the actual error was, word for word. It helps us find it faster..thanks
Rob
Posts: 26
Joined: Thu Aug 06, 2009 10:40 pm

Re: Parse error help

Post by Rob »

line 163 is the ending </html> tag
and it just said parse error on line 163
User avatar
Noctrine
Posts: 928
Joined: Thu Apr 23, 2009 9:57 pm

Re: Parse error help

Post by Noctrine »

A parse error on the HTML tag means that you didn't close something out earlier, and it was expecting to be closed before you declared the end of the document.
Jesse Dorsey
ProjectANI - Lead Developer Person
http://about.me/jessedorsey
Rob
Posts: 26
Joined: Thu Aug 06, 2009 10:40 pm

Re: Parse error help

Post by Rob »

Ahh, Thanks I've fixed it.
stickandmove
Posts: 4
Joined: Tue Mar 02, 2010 7:56 am

Re: Parse error help

Post by stickandmove »

Parse error: parse error in C:\wamp\www\tutorial\authenticate.php on line 7
1.<?php
2.include_once 'connect';
3.session_start();
4.
5.if (isset($_POST['submit']))
6.(
7. $player=$_POST['player'];
8.$password=$_POST['password'];
9.$player=strip_tags($player);
10.$password=strip_tags(password);
11.$password=nd5($password);
can you plz tell me what i did wrong?
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Parse error help

Post by OldRod »

Line 6: make your ( a {
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Parse error help

Post by Jackolantern »

Also, I don't know if you are only showing part of your code, but you need to close the { } as well for the IF statement.
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Parse error help

Post by hallsofvallhalla »

OldRod wrote:Line 6: make your ( a {
that is a common mistake we see a lot. I may ephasize this on my next video, or on my first videos of the new games.
stickandmove
Posts: 4
Joined: Tue Mar 02, 2010 7:56 am

Re: Parse error help

Post by stickandmove »

thanx alot, yet again i made a few mistakes in the coding, i was able to read over it and find them all, i think ill take your advise and watch all the vids a few times b4 i actually try to follow the tutorials, thanx again :D
Post Reply

Return to “Coding”