Field = NULL?
| From: | Kevin Schaaps | Date: | Mon, 19 Nov 2001 02:50:02 +0000 |
| Subject: | Field = NULL? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14427@lists.php.net to get a copy of this message | ||
Greetings,
I have a silly question, unfortunately I cannot find how it should work.
I want to see if a specific field is empty. I'll paste what I've done so
far.
The problem is that the current coding enters no value, but the IF statement
doesn't work either.
Please help me :D
Yours,
Kevin
if ($URL = NULL)
{ echo "
<tr>
<td></td>
<td>$class</td>
<td>$name</td>
<td>$type</td>
<td>ACTIVE SIM</td>
</tr>\n";
}
else
{ echo "
<tr>
<td></td>
<td>$class</td>
<td><a href=\"$URL\">$name</a></td>
<td>$type</td>
<td>ACTIVE SIM - $URL</td>
</tr>\n";
};