I am in the process of converting some ASP pages to PHP. I am just now learning it. There is a syntax error that I can't seem to get through. Here it is.
Parse error: syntax error, unexpected ‘;’ in /var/www/flock_keeper/view_flock.php on line 228
I don’t even have a ; on that line…
This is the code in that area…
<? $years_marr = (DateDiff("d",$_SESSION['anniv'],Now())/365.25); ?>
<? $male_bir = (DateDiff("d",$_SESSION['male_birth'],Now())/365.25); ?>
<? $female_bir = (DateDiff("d",$_SESSION['female_birth'],Now())/365.25); ?>
<? if (strlen($years_marr) == 0 || is_null($years_marr)) $years_marr = 0; ?>
<? if (strlen($male_bir) == 0 || is_null($male_bir)) $male_bir = 0; ?>
<? if (strlen($female_bir) == 0 || is_null($female_bir)) $female_bir = 0; ?>
This is line 228
<? if (strlen($_SESSION['male_first']) == 0 || (strlen($_SESSION['female_first']) == 0) ?>
|
<? else ?>
<?= $_SESSION['anniv'] ?> |