|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-11 10:20 UTC] flying at dom dot natm dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
Environment: - Windows 2000 Server - Apache v1.3.20 (binaries from www.apache.org) - PHP v4.0.6 (binaries from www.php.net) - InterBase v6.0.0.627 (binaries from www.borland.com) 1. Let's create very simple database: ----------------------------------------------------------------- CREATE DATABASE 'c:\db\test.gdb' USER 'user' PASSWORD 'password'; CREATE TABLE TEST_TABLE ( INT_VALUE INTEGER, STR_VALUE VARCHAR(50)); COMMIT WORK; ----------------------------------------------------------------- 2. Create very simple PHP script: ----------------------------------------------------------------- <?php $ib = ibase_connect('c:\db\test.gdb','user','password'); $query = ibase_prepare($ib,'insert into TEST_TABLE_2(INT_VALUE, STR_VALUE) values (?, ?)'); $rs = ibase_execute($query,1,null); ibase_close($ib); ?> ----------------------------------------------------------------- After this script will be executed, TEST_TABLE table will contain a row with STR_VALUE='' instead of NULL! However inserting the same data through ibase_query() works properly.