2007年06月23日
日付の比較
※今日の日付とテーブル上のDATE型との日付データの比較
テーブル上の日付データが格納されているのはdateとする。
今日の日付は、current_dateでMySQLから取得できる。
$sql = "SELECT * FROM テーブル名 WHERE date > current_date;";
↑上記で今日の日付より大きい日付のデータを表示する事ができる。
参考URL:http://q.hatena.ne.jp/1173995418
テーブル上の日付データが格納されているのはdateとする。
今日の日付は、current_dateでMySQLから取得できる。
$sql = "SELECT * FROM テーブル名 WHERE date > current_date;";
↑上記で今日の日付より大きい日付のデータを表示する事ができる。
参考URL:http://q.hatena.ne.jp/1173995418
2007年06月20日
phpMyAdminログイン時にパスワード
phpMyAdminを用いてデータベースを操作するための認証を設定します。
【45行目】
43 * characters.
44 */
45 $cfg['blowfish_secret'] = '';
↓
43 * characters.
44 */
45 $cfg['blowfish_secret'] = 'nifty';
・45行目の『nifty』と書かれた部分はphpMyAdminへログインするためのパスワードを暗号化するフレーズとなっております。お客様にて任意の文字列に置き換えてください。
・前後にある『''』は消さないでください。
【71行目】
69 // used for all relational
70 // features (pmadb)
71 $cfg['Servers'][$i]['auth_type'] = ''; // Authentication method (config, http or cookie based)?
↓
69 // used for all relational
70 // features (pmadb)
71 $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
・前後にある『''』は消さないでください。
【45行目】
43 * characters.
44 */
45 $cfg['blowfish_secret'] = '';
↓
43 * characters.
44 */
45 $cfg['blowfish_secret'] = 'nifty';
・45行目の『nifty』と書かれた部分はphpMyAdminへログインするためのパスワードを暗号化するフレーズとなっております。お客様にて任意の文字列に置き換えてください。
・前後にある『''』は消さないでください。
【71行目】
69 // used for all relational
70 // features (pmadb)
71 $cfg['Servers'][$i]['auth_type'] = ''; // Authentication method (config, http or cookie based)?
↓
69 // used for all relational
70 // features (pmadb)
71 $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
・前後にある『''』は消さないでください。

