Im getting this error message "Parse error: syntax error, unexpected $end" Can anyone point out this error. Thank you.

<?php

function CopyrightCheck($crCheck) {

$crCheck = stripslashes($crCheck);


$Copyright_Notice = "Copyright &copy; 2000-2009 YourWebsite.com (Your Script). All Rights Reserved";


if ($crCheck !== $Copyright_Notice) {

return COPYRIGHT_NOT_VALID;

} else {



return COPYRIGHT_IS_VALID;

}

?>

You forgot the ending }

Hi,

Try this code;

function CopyrightCheck($crCheck) {
$crCheck = stripslashes($crCheck);
$Copyright_Notice = "Copyright &copy; 2000-2009 YourWebsite.com (Your 

Script). All Rights Reserved";
if ($crCheck != $Copyright_Notice) 
   return COPYRIGHT_NOT_VALID;
else
   return COPYRIGHT_IS_VALID;
Member Avatar for diafol

listen to shaun - you left out closing brace (just like the last poster!)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.