2011-06

MySQL

auto_incrementの初期値をあとから設定する

テストデータとして、auto_incrementの設定してあるカラムへ大きい値のデータを手動で入力したら、自動で振られる番号がその続きからになってしまいました。auto_incrementの初期値はshowtablestatusfromli...
MySQL

現在日時の入力

insertintoset=now();更新情報などにデータ型は dateでもdatetimeでも
PHP

in_array serch_array

$hogehoge=array();for($i=0;$i>=100;$i++){if(($i%3)==0){array_push($hogehoge,$i);}}if(in_array($check,$hogehoge)){print"そ...
Linux

RHEL4のためのrpmライブラリ

環境:RHEL4ES(x86_64)apache2.0php4.3.9PHPのインストール時にphp