php error..

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
New php-forum User
New php-forum User
Posts: 34
Joined: Thu Dec 12, 2002 9:00 pm
Location: NJ

php error..

Postby xlordt » Sat Dec 28, 2002 11:46 pm

sup.. i keep getting an error on my script.. something like...

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/xlord/public_html/chall.php on line 13

can anyone tell me why.. here is my code


* function library

//Check to see if user is logged in
if(isset($_USER['uid']) >= 2) {
Welcome $_USER['username'] </TD></TR></TABLE>
}if(!isset($_USER['username']) >= 2){
echo "Please reg to view this page";

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Sun Dec 29, 2002 12:17 am

part of your code

Code: Select all

Welcome $_USER[username]</TD></TR></TABLE>";

Return to “PHP coding => General”

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests