Ok so im trying to have php check if the date on file is more than that of the current date if not i want it to echo a message but i keep getting this error. Please help!
<?php
$infosql = "SELECT * FROM premiersounds_users WHERE customer_id = $id";
$inforesult = mysql_query($infosql) or die(mysql_error());
$info = mysql_fetch_array($inforesult);
//Get date from database
echo $info['party_date'];
//Get current date from server
$format="%m/%d/%y";
$c_date=strftime($format);
//set sessions
$_SESSION['current_date'] = $c_date;
$_SESSION['party_date'] = $p_date;
echo $c_date;
//Check is Current date = lockout date
if $c_date <= $p_date { header("location:/Pages/my_info.php"); } else {echo 'Your account is locked out because your event is too close to allow online editing. Please contact your DJ.';}
?>
if $c_date < $party_dateneeds to be:
if( $c_date < $party_date )