Date: 05/14/01
- Next message: Matt Williams: "RE: [phplib] forum???"
- Previous message: Stefan Jösch: "[phplib] double 'insert into active_sessions...' MySQL error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hallo
I use the ODBC-DB_SQL from PHPLib:
$q = new DBVT("DELETE FROM verfasser WHERE veroeffentlichung=$id");
echo $q->Errno." ".$q->Error." ".$q->affected_rows()."<br>";
$q = new DBVT("DELETE FROM veroeffentlichungen WHERE ID=$id");
echo $q->Errno." ".$q->Error." ".$q->affected_rows()."<br>";
Output:
0 3 (all ok. 3 Records are erased)
0 1 (NO RECORD ERASED!!!)
The first DELETE works very well but the second says all is ok, but the
second DELETE has no effect and no Record get erased.
If you change the DELETE-Statement always only the first will affect to
the database.
Access 2000, Win 2k, PHP 4.0.6dev (www.php4win.de)
My Solution:
I changed in db_odbc.inc (from PHPLib) "odbc_pconnect" to
"odbc_connect"
Know all works, but I dont know why.
Do you know why this happens ?
Do I make a mistake or is there a bug ?
mfg
-- Markus Wagner E-mail: markus-wagner <email protected> Hobby: PHP, 747 Jumbo-Jet, Pontiac Fingerprint: C95A 4BE1 888E A0E8 FE42 D933 4D88 928D 8CBA 591C--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Matt Williams: "RE: [phplib] forum???"
- Previous message: Stefan Jösch: "[phplib] double 'insert into active_sessions...' MySQL error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

