RE: [PHP] PHP Mysql query data conversion newbie
| From: | Don Read | Date: | Thu, 10 May 2001 11:01:16 +0000 |
| Subject: | RE: [PHP] PHP Mysql query data conversion newbie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52256@lists.php.net to get a copy of this message | ||
On 09-May-01 Jon Haworth wrote:
<snip>
be sure to check for the NULL :
if (isset($amyrow["date"])) {
> if ($amyrow["date"] == "0000-00-00 00:00:00") {
> echo "no date";
> } else {
> echo $amyrow["date"];
> }
} else {
echo 'pfsst.';
}
> echo "</td>";
> }
> HTH
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.