FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » sqlite and php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
sqlite and php [message #175880] Thu, 03 November 2011 20:30 Go to previous message
Anne Achey is currently offline  Anne Achey
Messages: 1
Registered: November 2011
Karma:
Junior Member
Hi,

Anyone know how to create a sqlite database from PHP code? I am trying
the code below:

try
{
//create or open the database
$database = new SQLiteDatabase('myDatabase.db', 0666, $error);
}
catch(Exception $e)
{
die($error);
}

But when I try to access this database with the sqlite browser, it
tthrows an error saying the "file is not a SQL3 Database"

Error at the following link
http://imageshack.us/photo/my-images/259/errortz.png/

I then created the database manually from the sqlite command line and
tried to access it with PDO in PHP. I was able to do this, but again I
also want to be able to CREATE A DATABASE be it with PDO or
SQLiteDatabase.
Any help will be appreciated!

AA
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: email sent from webpage is classed as junk
Next Topic: session cookie: client side
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 20:58:14 GMT 2024

Total time taken to generate the page: 0.06624 seconds