PHPにおいて、$_SESSIONとまったくおなじ感覚で、データベースにアクセスできるDBArrayObjectクラスを作りました。簡単に"PHPらしい"方法でデータベースを使うことができます。 I have developed a PHP class that you can access to the database with the same style like $_SESSION. This DB wrapper enables you to access to the DB in pure PHP way. $_DB = new DBArrayObject(); 主キーの設定 //デフォルトは"id"。idを主キーにしたテーブルの場合は、設定の必要なし。 $_DB["users"]->setkey("username"); Select //絞り方の順序は自由に。 $user