|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2000-10-17 07:25 UTC] edrenth at thematec dot nl
 $st=odbc_prepare($conn,"update tabel set veld1=?"); $arg[0]="1"; odbc_execute($st,$arg); // stel dat dit statement mislukt $arg[0]="3"; odbc_execute($st,$arg); // nu zal odbc_execute weer "1" als waarde van het argument gebruiken. ./configure --with-mysql=no --with-openlink --with-apache=../apache_1.3.12 --enable-track-vars PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 15:00:01 2025 UTC | 
RESUBMITTED IN ENGLISH, STILL OCCURS IN 4.04PL1 I am working with openlink drivers for a UNIFY 2000 database No recent drivers available So, here's a testscript: <?php // first make your connection with odbc_connect() if (odbc_exec($conn,"create table test (veld char (1))")) odbc_commit($conn); else die("Fail to Create Table"); $st=odbc_prepare($conn,"insert into test values (?)"); $arg[0]="aa"; // statement will fail if (odbc_execute($st,$arg)) odbc_commit($conn); else { $arg[0]="b"; if (odbc_execute($st,$arg)) // statement fails again odbc_commit($conn); else { print "again fail to insert"; exit; } } $res=odbc_exec($conn,"select * from test"); odbc_result_all($res); if (odbc_exec($conn,"drop table test")) odbc_commit($conn); else print "Failed to drop"; ?>