I have an instance where I need to show two links if their boolean value has been set to true. The fields are checkr and checks which in MySQL are TINYINT(1). So it would go something like this:
if (checkr && checks = true) //both have to be true, not just one
echo $checkr with link(popup window)
echo $checks with link(popup window)
So I have two different attemps, but not really sure either one is correct, I know I’m missing something
[code=php]
if ($checkr && $checks)
{
$resstat .= ‘ – ‘ . ‘<a href=”link?id=’ . $row[‘field1’] . ‘”>’link1</a>” . ‘ – ‘ . ‘<a href=”link?id=’ . $row[‘field2’] . ‘”>’link2</a>” . ‘<br>’;
echo $resstat;
}
[code=php]
if (isset($_GET[‘checkr’],[‘checks’]))
{
$resstat .= ‘ – ‘ . ‘<a href=”link?id=’ . $row[‘field1’] . ‘”>’link1</a>” . ‘ – ‘ . ‘<a href=”link?id=’ . $row[‘field2’] . ‘”>’link2</a>” . ‘<br>’;
echo $resstat;
}
Also, the fields checkr, checks, field1, and field2 should all change relative to the value of $personID which is passed before this if statement.
Any ideas or hints are appreciated, thanks!