Hi,
I am using php and MySQl. I tried to display the output of a select statement in a html table. The table border was missing wherever the value of the record returned from MySql is "" or null. How could we test if MySql returns null or ""? The code I am using is like this:
$result = mysql_query($sql, $linkId);
$row = mysql_fetch_row($result);
foreach($row as $field)
{
//PHP never goes into the if statement
if(empty($field)){
$field = " ";
}
print "<td>$field</td>";
}
Could anybody help me out?