php error..

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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";
Computer/Programm rox.. (php, c/c++ will take over soon muhahah

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Sun Dec 29, 2002 12:17 am

part of your code

Code: Select all

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

Post Reply