Jump to content

Parse error: syntax error


Bosma

Recommended Posts

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/garry/public_html/ocp/includes/check.php on line 1

 

Is the full error.

 

Here's the check.php page:

 

<?PHP

require 'connect.php';

$username = $_COOKIE['username'];
$password = $_COOKIE['password'];

$credidential_query = mysql_query(" SELECT username, password FROM levelers WHERE username = '$username' and password = '$password' ");

$credidentials = mysql_fetch_array($credidential_query);

if($username != $credidentials['username'] and $password != $credidentials['password'] or !$username or !$password) {
header("location: ../login.php");
}

?>

 

Could someone please tell me how I would go abouts fixing this?

 

Thanks in advance,

 

Spencer

Link to comment
https://forums.phpfreaks.com/topic/91356-parse-error-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.