I have two php pages - home.php and player.php...
home.php has a loop to show all the products EID has associated with it including TOTALPLAYS, PLAYCOUNT, USER, PASS, PRODUCT and PRODUCTPATH... player.php has a small script to find out if PLAYCOUNT > TOTALPLAYS as well as pulling in the PRODUCTPATH into the flash player.
My math script below gives me the correct 'location redirect' when it returns exceeds TOTALPLAYS, it redirects to expired.php when it does not exceed TOTALPLAYS as well.
<?php
$ePlays = $row_eVideo['ePlays'];
$ePlayed = $row_eVideo['ePlayed'];
if ($ePlayed > $ePlays) {
header('Location: expired.php');
}
else{
}
?>
I have a recordset that returns the EID and I even put the EID= on the link in the home page and it still returns expired...
Any help/suggestions would be great...
Ted