Trying to do an if / else with a bit field. My background is Classic ASP so please bear with me as I'm new to PHP and am trying to convert!
Here's what I've been trying:
<?php
$dimmer=$row_rsPRODFULL['LEDdimmable']
if ($dimmer=b'1')
{
echo "Yes";
}
else
{
echo "no";
}
?>
I've also tried:
if ($dimmer="true")
if ($dimmer="1")
...nothing works!
Hope someone can help.
PS. Why can't I paste into this text box, even using the Copy/Paste tools above? Using IE11.
Thank you
NJ