Bosma Posted February 16, 2008 Share Posted February 16, 2008 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 Quote Link to comment Share on other sites More sharing options...
awpti Posted February 16, 2008 Share Posted February 16, 2008 Works fine for me. <?PHP == <?php Might be it. Consider it's line one. Quote Link to comment Share on other sites More sharing options...
phpSensei Posted February 16, 2008 Share Posted February 16, 2008 I stripped the code in pasted it in PHPdesigner and it didn't find any errors of the sort. Please submit the FULL script of your page... Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted February 16, 2008 Share Posted February 16, 2008 Hello, Maybe it's in your connect.php. Just guessing here. Ken Quote Link to comment Share on other sites More sharing options...
phpSensei Posted February 16, 2008 Share Posted February 16, 2008 Hello, Maybe it's in your require.php. Just guessing here. Ken I agree, Sometimes LINE 1 could be the line under the open tags. Quote Link to comment Share on other sites More sharing options...
GameYin Posted February 16, 2008 Share Posted February 16, 2008 Hello, Maybe it's in your require.php. Just guessing here. Ken It's not that. You can write requires like that. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted February 16, 2008 Share Posted February 16, 2008 Hello, Maybe it's in your require.php. Just guessing here. Ken It's not that. You can write requires like that. GameYin, Sorry, I meant to write connect.php. Thanks for the fix Ken Quote Link to comment Share on other sites More sharing options...
Bosma Posted February 16, 2008 Author Share Posted February 16, 2008 I stripped the code in pasted it in PHPdesigner and it didn't find any errors of the sort. Please submit the FULL script of your page... That is the full code, I'll post connect. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.