Here is my code:
while ($row = mysql_fetch_array($result))
{
echo "<TR><TD>"; echo $row['make']; echo "</TD>";
echo "<TD>"; echo $row['model']; echo "</TD>";
echo "<TD>"; echo $row['serial']; echo "</TD>";
echo "<TD>"; echo $row['condition']; echo "</TD>";
echo "<TD>";
IF ($row['on_loan'] = "0") {
echo "In"; echo "</TD>"; echo "</TR>";}
else {
echo "Out"; echo "</TD>"; echo "</TR>";}
}
When I run this I just get the else results. All the is set to 0 in that feild but I still get the "Out" output . Please help.