I saw an answer that looks like it might address it but it's not looking promising looking around here because everything seems to indicate my code is fine. I'm trying to create a dynamic page where it loads certain information if certain conditions are met. Everything is showing up and working fine except my progress section. Can someone tell me why this isn't working?
<? php require_once("session.php"); ?>
<? php require_once("connection.php");
$email = $_SESSION['email'];
$query = mysql_query("SELECT * FROM progress WHERE email = '$email'");
$row = mysql_fetch_array($query);
if ($row['admin'] == 0) {
echo...
Then it echoes out my page with the dynamic content and if that value returns true at the bottom it redirects to the admin management page.
if ($row['progress'] !== 100) {
$contract = $row['location'];
$progress = $row['progress'];
$mockup = $row['mockup'];
echo "<a href=\"customer.php\">Contact</a><br />";
echo "<a href=\"$contract\">View Contract</a><br />";
echo "<a href=\"$mockup\">View Mock Up</a><br />";
echo "<p>Progress: " . $progress . "%</p>";
}
This value always shows that the number in the database is not 100 even if the page echoes that it is 100% completed. This is a problem as the next stage on this is a payment stage but it won't load when every time it says it's true.