Bug #1338: Problems fetching values from a datetime field
| From: | rns at radar dot no | Date: | Wed, 21 Apr 1999 07:27:48 +0000 |
| Subject: | Bug #1338: Problems fetching values from a datetime field | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5169@lists.php.net to get a copy of this message | ||
From: rns@radar.no
Operating system: Linux RedHat 5.2, Kernel 2.0.36
PHP version: 3.0.6
PHP Bug Type: Sybase (dblib) related
Bug description: Problems fetching values from a datetime field
If I try this code:
$sql = "SELECT starttime FROM timeunit WHERE timeunitid = 100514";
$sbr = sybase_query($sql, $sbc);
if($sbr > 1) {
for($i = 0; $i < sybase_num_rows($sbr); $i++) {
$row = sybase_fetch_row($sbr);
for($j = 0; $j < sizeof($row); $j++) {
$line = chop($row[$j]);
echo "\"<B>$line</B>\"<BR>\n";
echo "\"$line\"<BR>\n";
}
}
}
I get this result:
"<B>Sep 2 1998 5:00:00:000PM</B>"<BR>
"Sep 2 1998 5:00:00:000PM<BR>
It doesn't print the last \" in the last line. Why?
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net