Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

php error..

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

[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]
User avatar
xlordt
New php-forum User
New php-forum User
 
Posts: 34
Joined: Thu Dec 12, 2002 9:00 pm
Location: NJ

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

part of your code
Code: Select all
Welcome $_USER[username]</TD></TR></TABLE>";
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => General

Who is online

Users browsing this forum: Strider64 and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.