The database (mysql) has field "complete" in a table. it is set to
tinyint(1), null=no, default=0.
1 and 0 are the only possible values.
If trying to print out a report.
All i want is if complete=1 print "Closed" else print "Open"
Here's the code i'm using but with no luck
if ($task[complete] ="1")
{$status=Complete;}
else
{$status=Open;}
The output is always "complete"
What am i doing wrong? Plz help. thx.