- Timestamp:
- 09/26/13 15:41:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/tests/testoci8.php
r34 r8222 3 3 <?php 4 4 /* 5 V4.80 8 Mar 2006 (c) 2000-20 07 John Lim (jlim#natsoft.com.my). All rights reserved.5 V4.80 8 Mar 2006 (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. 6 6 Released under both BSD license and Lesser GPL library license. 7 7 Whenever there is any discrepancy between the two licenses, … … 11 11 Latest version is available at http://adodb.sourceforge.net 12 12 */ 13 error_reporting( 63);13 error_reporting(E_ALL | E_STRICT); 14 14 include("../adodb.inc.php"); 15 15 include("../tohtml.inc.php"); … … 26 26 $db->UpdateBlob('ATABLE', 'ablob', $varHoldingBlob, 'id='.$num, 'BLOB'); 27 27 28 $rs = &$db->Execute('select * from atable');28 $rs = $db->Execute('select * from atable'); 29 29 30 30 if (!$rs) die("Empty RS"); … … 34 34 $stmt = $db->Prepare('select * from adoxyz where id=?'); 35 35 for ($i = 1; $i <= 10; $i++) { 36 $rs = &$db->Execute(36 $rs = $db->Execute( 37 37 $stmt, 38 38 array($i)); … … 49 49 $db->Execute("delete from emp where ename='John'"); 50 50 print $db->Affected_Rows().'<BR>'; 51 $stmt = &$db->Prepare('insert into emp (empno, ename) values (:empno, :ename)');51 $stmt = $db->Prepare('insert into emp (empno, ename) values (:empno, :ename)'); 52 52 $rs = $db->Execute($stmt,array('empno'=>4321,'ename'=>'John')); 53 53 // prepare not quite ready for prime time … … 74 74 if (!$db->PConnect('local_oracle','scott','tiger')) die('fail connect'); 75 75 $db->debug = true; 76 $rs = &$db->Execute(76 $rs = $db->Execute( 77 77 'select * from adoxyz where firstname=? and trim(lastname)=?', 78 78 array('first'=>'Caroline','last'=>'Miranda'));
Note: See TracChangeset
for help on using the changeset viewer.