nadeemshafi9 Posted March 7, 2009 Share Posted March 7, 2009 my application can connect to the guestbook sqlite db throgh its wired configuration but here i am having trouble , i think it has somthing to do with this :memory: buisness $db = new Zend_Db_Adapter_Pdo_Sqlite(array('dbname' => ':memory:')); $authAdapter = new Zend_Auth_Adapter_DbTable($db); $authAdapter->setTableName('users'); $authAdapter->setIdentityColumn('username'); $authAdapter->setCredentialColumn('password'); Message: The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity. CREATE TABLE [users] ( [id] INTEGER NOT NULL PRIMARY KEY, [username] VARCHAR(50) UNIQUE NOT NULL, [password] VARCHAR(32) NULL, [real_name] VARCHAR(150) NULL) any help , thanks Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted March 7, 2009 Author Share Posted March 7, 2009 $db = new Zend_Db_Adapter_Pdo_Sqlite(array('dbname' => APPLICATION_PATH."/../data/db/guestbook-dev.db")); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.