I changed my code to this:
<?php
if ("".(($complete1->findRow("stage",2))) ."" != "1") { // WebAssist Show If
?>
<div class="w3-col s4" style="width:20%"> <img class="demo w3-opacity"
src="images/1.png"> </div><?php
} // ("".(($complete1->findRow("stage",2))) ."" != "1")
?>
<?php
if ("".(($complete1->findRow("stage",2))) ."" == "1") { // WebAssist Show If
?>
<div class="w3-col s4" style="width:20%"> <img class="demo"
src="images/1.png"> </div><?php
} // ("".(($complete1->findRow("stage",2))) ."" == "1")
?>
<?php
if ("".(($complete1->findRow("stage",2))) ."" == "2") { // WebAssist Show If
?>
<div class="w3-col s4" style="width:20%"> <img class="demo"
src="images/2.png"> </div><?php
} // ("".(($complete1->findRow("stage",2))) ."" == "2")
?>
<?php
if ("".(($complete1->findRow("stage",2))) ."" != "2") { // WebAssist Show If
?>
<div class="w3-col s4" style="width:20%"> <img class="demo w3-opacity"
src="images/2.png"> </div><?php
} // ("".(($complete1->findRow("stage",2))) ."" != "2")
?>
And it still isn't working.
Here is the recordset code:
<?php
$complete1 = new WA_MySQLi_RS("complete1",$dgt,5);
$complete1->setQuery("SELECT * FROM dgt_district_project_status WHERE districtID = ? and projectID = '1' and status = 'Complete'");
$complete1->bindParam("i", "".(isset($_SESSION['districtID'])?$_SESSION['districtID']:"") ."", "-1"); //colname
$complete1->execute();
?>
Any ideas?