Hi All,
I have a prepared statement which give me a bound result $pom
If the value is NULL i would like the output to be "EVEN" if it is not null i would like it to equal itself with a poundsign infront.
I have the following:
$stmt -> bind_result($pom);
while($stmt -> fetch()){
$pom = "£{$pom}" ?? "Even";
$out .= "<div>$pom</div>";
}
return $out;
I have found that whatever the outcome, it is the same on each row.
I either get the £ sign or i dont for everything.
If i remove the £ completely to the following, it works perfectly.
$pom = $pom ?? "Even";