Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 10-29-2003, 10:14 AM Parse error
Average Talker

Posts: 21
Trades: 0
Hi, I have a PHP login script which works when I run it on a Win2000 Server PC in my home but when I upload it to my Linux Web space it give me this error:

Parse error: parse error, expecting `')'' in control.php on line 30

This is the code section where the error occurs:

if(isset($_COOKIE['username'])){
if(isAdmin($_COOKIE['username'])) $your_p='2';
elseif(isset($_COOKIE['username'],$_COOKIE['password'])) $your_p='1';
else $your_p='0';
}
else
{
$your_p='0';
}

Line 30, referred to in the error message, is the elseif line:

elseif(isset($_COOKIE['username'],$_COOKIE['password'])) $your_p='1';

Does anyone here know what the problem might be?

Thx,
May
may_hem1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-06-2003, 11:38 PM
TimSchroeder's Avatar
Admin/Owner

Posts: 6,141
Location: Orlando, FL
Trades: 0
I can't help you with this one, but I'll bump it fow one last chance

__________________
Webmaster-Talk Admin -
Please login or register to view this content. Registration is FREE
| My
Please login or register to view this content. Registration is FREE
.


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

TimSchroeder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Parse error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15680 seconds with 12 queries