WordPressのデータベースにアクセスするプログラムの作り方

WordPressのデータベースにアクセスするプログラムの作り方 | 山本隆の開発日誌

WordPressのデータベースにアクセスするプログラムの簡単な作り方。

使用したのは、wordpress-2.2.3-multilingual-edition。

wp-cofig.phpをrequireします。

require(‘wordpress/wp-config.php’);

これだけで、$wpdbを通してデータベースにアクセスできます。

Oh.これは目から鱗。
この手があったか!

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">