php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1338 Problems fetching values from a datetime field
Submitted: 1999-04-21 03:27 UTC Modified: 1999-11-05 03:56 UTC
From: rns at radar dot no Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0.6 OS: Linux RedHat 5.2, Kernel 2.0.36
Private report: No CVE-ID: None
 [1999-04-21 03:27 UTC] rns at radar dot no
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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-05 03:56 UTC] thies at cvs dot php dot net
fixed in CVS	
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC