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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rns at radar dot no
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 11:01:27 2024 UTC