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 {}

?>

No comments posted yet

Your Answer:

Login to answer
107 Like 31 Dislike
Previous forums Next forums
Other forums

redirect standard error and assert (how to?)
How do you redirect standard error and assert?

---

(Why? I am creating an web app and

MySQL Primary key gap
Alright, so I have a table with 26 entries in it (id, filename, caption) for my image randomiser (ht

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

Inserting into MySQL Newbie
Hi ive got a slight problem where ive made a simple web form where the customer inserts the ammount

Hyperlink is adding an extra gap to variable
Hi, here's my problem..

I have a php generated page with a hyperlink which opens in a new win

Insert Failing.
Hey,
I am making a Sign up page for a website, but the insert query into the Database does not se

Php navigation
I have four buttons on a php page.
If i click a button it will redirect to different php pages.

PHP and SMS
Hi all forum members. I am new here and am unsure what category shoild I post this in.
Moderator

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

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