i need to use if statement inside my table the value of the row is "Released" but i want to show Pending on my html table. how can i achieve it. this is my current code. what's wrong with my if statement?
if (strlen($row['signed']) == "Released") {
echo "Pending";
}
else{
echo $row['signed'];
}
strlen()returns the length of the argument, so it returns an integer. You're trying to compare an integer to a string, which always fails.