Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.