User Tools

Site Tools


kurs:test-db.php
<?php

$db = oci_connect('hr', 'hr', 'orcl11');

$q = oci_parse($db, "select to_char(sysdate, 'yyyy-mm-dd hh24:mi:ss') from dual");

$r = oci_execute($q, OCI_DEFAULT);

$row = oci_fetch_array($q, OCI_RETURN_NULLS);

echo $row[0] . "\n";

?>
kurs/test-db.php.txt · Last modified: 2014/09/10 21:22 (external edit)