Browser not displaying full error

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
shwetha004
Forum Newbie
Posts: 12
Joined: Mon Aug 06, 2007 10:39 pm

Browser not displaying full error

Post by shwetha004 »

hi all..

i currently attempting to develop an online loan application system.
i've been struggling with my login page for far too long..

after rewriting so many times,now im getting a parse error at this line

echo " ".$_POST['staffID'];

i really cant figure out wat cud be causing this(sory if i sound downright naive..but im still learning) :oops:
and another problem is,im only getting this in my browser:

Parse error: parse error at C://.............. at line 20.

its not telling what is the exact error.if i got a UNEXPECTED T_STRING or sumthing,i could at least try..and the code above was from an online tutorial.it looks just right to me(but then,my knowledge of php could be factor in that :( )
i've already changed display_error in php.ini to On.

im not sure y my browser is still nt telling me the exact error...i would be so relieved if someone can help me..
thank you so much.. :D
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

please post the first 20 lines of your script.
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

And don't use AOL Speak/Shorthand.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

You probably left a string open above it.
shwetha004
Forum Newbie
Posts: 12
Joined: Mon Aug 06, 2007 10:39 pm

Post by shwetha004 »

hi all..

thanks for your replies..

first of all,about the AOL/shorthand ,i apologize.
next,i manage to find out what was causing the error..turns out there was a space between ? and php in my opening tag,so that instead of <?php ,it was <? php .and that was causing so much anguish to me all this while.once i removed the space, everything worked fine..

thanks again for your replies :D
Post Reply