Hi
Ive got a form with only one checkbox. On my display page i want to check whether or not the checkbox is checked, if it is then i want to display a pic if not no pic.
I have the below code but think i am going wrong with checking whether the check box is NULL. The checkbox is $row[$callindex]
[code] for ( $i=1; $i <= $num_rows; $i++ )
{
$row = mysql_fetch_row($result);
$comindex = 2;
$callindex = 3;
echo ‘<tr>’;
// Loop through each column
for ( $j=0; $j < $num_cols – 1; $j++ )
{
if ($row[$j] == NULL)
{ echo ‘<td> </td>’;
}
else
{ if ($j==$comindex && $row[$callindex] != NULL)
{ echo ‘<td><b><img src=”../../images/mobile.jpg”></b> ’.htmlentities( $row[$j] ).'</td>’;
}
else
{
echo ‘<td>’.$row[$j].'</td>’;
}
}
}
}