Re: Problem executing query in mysqli
| From: | Joshua J. Kugler | Date: | Thu, 17 Sep 2009 20:17:49 +0000 |
| Subject: | Re: Problem executing query in mysqli | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30051@lists.php.net to get a copy of this message | ||
On Thursday 17 September 2009, Christian Weiske said something like:
> Hello Joshua,
>
> > > please upgrade to the latest beta:
> > > pear upgrade MDB2-beta
> > > pear upgrade MDB2_Driver_mysqli-beta
> >
> > OK, so I'm now running the latest beta (2.5.0 and 1.5.0), and I now
> > get this error:
> >
> > MDB2 Error: not found; execute error; query: INSERT INTO
>
> According to [1], "MDB2 Error: not found" means the driver could not
> be found.
>
>
> [1] http://pear.php.net/manual/en/package.database.mdb2.faq.php
OK, that's weird.
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.3 stable
Console_Getopt 1.2.3 stable
MDB2 2.5.0b2 beta
MDB2_Driver_mysqli 1.5.0b2 beta
PEAR 1.9.0 stable
Structures_Graph 1.0.2 stable
XML_Util 1.2.1 stable
And if it can't find the driver, why isn't it complaining upon connect,
but instead waiting until it executes a query?
Attached is the code we're using to connect, query, etc. Don't flame me
too bad: I'm pretty new at PHP, and I'm maintaining code written by
others. :)
Line 32 is where it dies and prints the message. But if it truly can't
find the driver, why doesn't it die on line 19 after the connection?
j
--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ ID 0x14EA086E
Attachment: [application/x-php] sqli.lib.php
Attachment: [application/x-php] sqli.lib.php