Re: MDB2 simple test

From: Date: Sat, 11 Nov 2006 11:33:35 +0000
Subject: Re: MDB2 simple test
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-244488@lists.php.net to get a copy of this message
Mark, this is my main_includes.php file : <?php $path = 'pear'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once "Structures/DataGrid.php"; require_once 'MDB2.php'; ?> and in my file where i try to use MDB2.php, it's included like that : <?php include_once('includes/main_include.php'); ?> at the beginning of my file before all META Articles table exists in my database, i've checked also if i did not make some mistakes in the user name, password or dbnane in my dsn, but as i do not have any error raised from the database connection. I guess that everything is correct. Al. On 11/11/06, Mark Wiesemann <wiesemann@php.net> wrote:
Alain Roger wrote: I have a main_includes.php which include_once/require_once all needed things like MDB2.php or setpath for /pear folder Okay, but remember that the PEAR dir needs to in the include_path. Otherwise, e.g. MDB2 won't find its own files and might not work as expected. Anyway, you are right. issue is on the Query command. Here is the error message : MDB2 Error: unknown error _doQuery: [Error message: Could not execute statement] [Last executed query: SELECT * FROM articles] but it does not help me so much this error. Is this the output of getMessage() and getDebugInfo(). If it isn't, getDebugInfo() should give you more information. Anyway: Does the articles table exist in your database? Regards, Mark


« previous php.general (#244488) next »