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

Did you know?Explore Trending and Topic pages for more stories like this.

//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

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

Getting the full city list from maxminds geoip database
I am suprised I can't find any references to this.

I have maxminds geoip lite installed and i

Cannot Display Array from Select Statement + Login question
Hi,
I'm new to PHP but so far so goog. I was assigend a project and I'm very close to completion.

FTP Programs
Here is a list of commonly suggested FTP Programs to use:

FileZilla
SmartFTP
CuteFTP

replacements
I have a variable in my PHP script like

ASSFDDDDDDDDDDDDDASDDDDDDDDARYTRHKKHHHHHHHHHHH and p

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

Help with writing "$" with fopen
I just can't get my syntax correct. Could someone help me please? I am trying to write a connect fil

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