Problem!


Posted on 16th Feb 2014 07:03 pm by admin

I have another problem, when i run this code i get this error "Parse error: syntax error, unexpected T_ELSE in /home/a1408362/public_html/admin.php on line 41". I can't see why in the code below i get this.

Heres the code "Code: <?php


//checks cookies to make sure they are logged in
if(isset($_COOKIE['ID_my_site']))
{
}
$username = $_COOKIE['ID_my_site'];

if ($username <> "administrator");


{ header("Location: login.php");
}

else {}

?>

107 Like 31 Dislike
Previous php-forum Next php-forum
Other php-forum

please help
HTML Code:

Code: <span id="ctl00"><span>

. and .. appearing instead of pictures
First of all, thanks very much for providing this forum. It is very much appreciated!

My son

php web service error
hey guys,
I'm working on a project requires the use of web services. I've been trying a few tutor

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

update post issues
I am trying to create an update to a post function, while the update does occur, the page routing an

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block is

Email Script does not reach destination
Hey Guys look at this code snippet :
Code:
//read a line from the file

$myFile = "

problem getting my contact form working
Yeah I know this is a pretty basic problem, but it's been a while since I've worked with PHP and I'm

Filtering an Array Based on Value
I have a very simple script set up that pulls data from a database and is output using this code:

Help building / using array
First - this is a cross-posting, if this is wrong I apologise! What started out as a MySQL query que

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash