note 76970 added to function.ocifetchinto
| From: | zillo at lycos dot es | Date: | Wed, 08 Aug 2007 12:41:50 +0000 |
| Subject: | note 76970 added to function.ocifetchinto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129291@lists.php.net to get a copy of this message | ||
I have a datetime field in ORACLE, but, when i use the array results variable i only receive the
date "30/12/99" (1899-12-30). I'm trying with OCIFethcInto and OCIFetchStatement but
i'm not able to obtain a valid result.
my code:
<?
$sql="SELECT * FROM PRESENCI";
$sql.=" WHERE CodPers = '00003' ";
$sql.=" AND Fecha >= '06/08/2007' ";
$sql.=" AND Fecha <= '08/08/2007' ";
$sql.=" ORDER BY Fecha";
$sql=OCIParse($con, $sql);
OCIExecute($sql);
if (!OCIFetchInto($sql, $rec, OCI_ASSOC + OCI_RETURN_NULLS))
exit;
$horario=$rec["HORTEO"]; //HORTEO: field name
echo $horario;
?>
It should return "30/12/99 8:00:00", but i only get "30/12/99".
Any suggestions ? Thanks!
----
Server IP: 80.64.47.13
Probable Submitter: 217.127.84.150
----
Manual Page -- http://www.php.net/manual/en/function.ocifetchinto.php
Edit -- https://master.php.net/note/edit/76970
Del: integrated -- https://master.php.net/note/delete/76970/integrated
Del: useless -- https://master.php.net/note/delete/76970/useless
Del: bad code -- https://master.php.net/note/delete/76970/bad+code
Del: spam -- https://master.php.net/note/delete/76970/spam
Del: non-english -- https://master.php.net/note/delete/76970/non-english
Del: in docs -- https://master.php.net/note/delete/76970/in+docs
Del: other reasons-- https://master.php.net/note/delete/76970
Reject -- https://master.php.net/note/reject/76970
Search -- https://master.php.net/manage/user-notes.php