...request synchronization error...
| From: | DiZEM PGC | Date: | Wed, 17 Dec 2003 11:57:12 +0000 |
| Subject: | ...request synchronization error... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32098@lists.php.net to get a copy of this message | ||
Hi ,
Does anyone know what could be the reason for an 'request synchronization
error' ?
It occurs after calling ibase_fetch_assoc(). The same thing going on with
ibase_fetch_object() and ibase_fetch_row(). The resultset is being delivered
correctly by ibase_query(). The SQL-String (SELECT) returns the one row i've
expected when executing it inside IBConsole.
I've written a class containing all database functions, e.g.
'db_fetchassoc()'.
Now, the strange thing about this is:
-Calling the ibase functions directly works fine and returns the expected
row ( same as IBConsole).
-Calling the ibase functions from another script, that includes my database
functions(class), results in the error mentioned above.
MY
SCRIPT
------------------------------------------------------------------------------------------
...
include('databasefunctions.php');
...
$database=new database;
$sql='SELECT ID,NAME,SIZE....';
$database->db_query($sql); // equals ibase_query($sql)
$databaserow=$database->db_fetchassoc(); <- At this line I get the error
!!!
...
echo
$databaserow[...]
...
------------------------------------------------------------------------------------------
And this is how the function inside the class looks like :
function db_fetchassoc()
{
...
// ibase_fetch_row() or
// ibase_fetch_object() or
$resultset=ibase_fetch_assoc();
return $resultset;
}
Does anyone know how to solve this problem ?
Please help me !!!!!!!!!
P.S.: Let me know if further information is needed.
DiZEM
--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net