English 中文(简体)
我是否应该使用某种数据库?
原标题:Should I be using some sort of database?
  • 时间:2012-01-14 02:02:28
  •  标签:
  • php
  • database

为了重新设计网站,我用手方式将

在旧系统中,一个文本文件被用作一个临时数据库;它储存了每张显示器的数据,显示器有线和数据场分开。] 摘录:

#The Whorl of the Leaves]WhorlOfTheLeaves]3]F]167
#Aladdin]Aladdin]8]N]0
#A Christmas Carol]XmasCarol84-]7]N]0
#The Feral Child]FeralChild]7]N]118
#Camelot]Camelot]11]N]169

然后使用PHP的文字来提取有关每一张照片的信息,使网页上看到here

我确信,可以使用一个文字来汇集上面所示的网页,但似乎应当有一个比一份文本文件更好的系统来储存这些信息。

我的问题是:如果文本文件数据库正在发挥作用,我是否应该改变数据库? 是否有更好的办法来组织有关每一方显示的信息?

最佳回答

SQLite。 它是一个不需配置或安装的小型数据库,但大部分安装在旧房。

Just use PDO及贵方。

$db = new PDO( sqlite:/path/to/here/mydb.sq3 );

$db->query( SELECT * FROM shows );
问题回答

下面是“更好的”方式。 但是,如果你对此感到高兴并发挥作用,为什么会改变?

可以通过使用drupal等内容管理系统来挽救许多麻烦。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签