php error..

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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

[code]
<?php

/**
* function library
*/
require_once('lib-common.php');
//home/xlord/public_html/layout/gameserver/header.thtml');

//Check to see if user is logged in
if(isset($_USER['uid']) >= 2) {
echo"
<TABLE WIDTH=\"100%\"><TR BGCOLOR=\"BLACK\"><TD>
Welcome $_USER['username'] </TD></TR></TABLE>
";
}if(!isset($_USER['username']) >= 2){
echo "Please reg to view this page";
}
?>
[\code]
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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests