Jump to content

SQLite 3 - Importing .db file?


Irate

Recommended Posts

The topic title says it all - I have a .©db file (the c standing for cards, but that doesn't change the format) including a complex relationship of cards, their names and their associated images.

 

It is written in SQLite 3 dialect, which I happen to have installed on my PC and also can get it working, but I cannot import the file and work it, somehow.

 

How would I work on importing it?

 

Thanks in advance for any support.

Link to comment
https://forums.phpfreaks.com/topic/281816-sqlite-3-importing-db-file/
Share on other sites

Generally everything, I have the components but I cannot quite properly figure out the format the file is in right now (I didn't write the file), I also never have used SQLite much...

 

I excuse if this sounds a bit... illiterate, but I haven't been able to access the internet properly in the course of the last three days so I couldn't quite look up the documentation for it.

Do you just want access to this sqlite db file? Is that what you are actually asking?

 

PHP ships with an sqlite extension: see http://php.net/sqlite

 

More specifically take a look at http://php.net/manual/en/function.sqlite-open.php. Once you have the opened the database, you can execute sql queries against it.

I guess I tried using the sqlite3 extension, though I am not sure if I needed to install anything else on my localhost or on my PHP host, seeing as I am very limited with time lately.

 

Would PDO work without installing anything additional?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.