On 09-May-01 Jon Haworth wrote:
snip
be sure to check for the NULL :
if (isset($amyrow[date])) {
if ($amyrow[date] == -00-00 00:00:00) {
echo no date;
} else {
echo $amyrow[date];
}
} else {
Hello,
I pull some data from mysql with the php code below.
On the date field if there is no date on mysql it displays : -00-00
00:00:00
I would like to change this -00-00 00:00:00 to no date for example..
Or if the cel is empty to (because otherwise the tableborders are messed
up)
[date];
}
echo /td;
}
}
HTH
Jon
-Original Message-
From: Andras Kende [mailto:[EMAIL PROTECTED]]
Sent: 28 April 2001 17:01
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Mysql query data conversion newbie
Hello,
I pull some data from mysql with the php code
On Sat, 28 Apr 2001, Andras Kende wrote:
Hello,
I pull some data from mysql with the php code below.
On the date field if there is no date on mysql it displays : -00-00
00:00:00
I would like to change this -00-00 00:00:00 to no date for example..
hmm... mysql can do this, works
4 matches
Mail list logo