MySQLデータベースからphpでデータを取得するメモ。
$records = $db->query('select * from [テーブル名]');
while ($record = $records->fetch()){
print ($record['[カラム名]']."\n");
}
More than 3 years have passed since last update.
MySQLデータベースからphpでデータを取得するメモ。
$records = $db->query('select * from [テーブル名]');
while ($record = $records->fetch()){
print ($record['[カラム名]']."\n");
}
Register as a new user and use Qiita more conveniently