Interbase problem
| From: | alpopescu | Date: | Sun, 20 May 2001 11:11:46 +0000 |
| Subject: | Interbase problem | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9473@lists.php.net to get a copy of this message | ||
Hi,
Let me help with this problem, please.
Have anyone any idea why the first statement works and the second not ?
1.
$dbh=ibase_connect($host, $user, $pass) or die("Connection error");
$result=ibase_query("select * from tablename");
...
ibase_close();
2.
$dbh=ibase_connect($host, $user, $pass) or die("Connection error");
$result=ibase_query($dbh, "select * from tablename");
=> Warning: 0 is not a valid ... or Php crash
Even if the first statement works for select, it does'n work for update statements where I must
use ibase_trans and ibase_commit, which is the real problem for me.
Things happens on a Win32SE, Interbase6 and Php4.
Thank you.
------------------------------
K Free E-mail http://www.k.ro/
by KappaNet http://www.kappa.ro/