Re: PDO, sqlite write requests (INSERT) don't working

From: Date: Wed, 20 Aug 2008 08:11:20 +0000
Subject: Re: PDO, sqlite write requests (INSERT) don't working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-278378@lists.php.net to get a copy of this message
Hi KLEIN, I think the problem is where you are connecting to your database. I've not used SQL lite before, but the function spec says that you have too many arguments. It suggests connecting like this: if ($db = new SQLiteDatabase('filename')) Also, do you need to specify the sqlite: protocol before the path? Does the system even know what this path is? One further note; you are using a relative path, but is it relative to the right location? Does it have to be relative to the system runtime or the PHP file? Try an absolute path to see if that fixes it. Ash www.ashleysheridan.co.uk

« previous php.general (#278378) next »