原因は・・・。

やっぱり、予想したとおり、and year = ${year[0]}が抜けてたことだ。
(ちなみに、変数名とかは加工してあります)

$sql = "select count(*) from A where month = ${month[0]}";

$sql = "select count(*) from A where month = ${month[0]} and year = ${year[0]}";

Posted at : 2005-10-23 16:38:15 / Category : none

Comments

まだコメントはありません / No comment.

Send comment


Name


Mail-address (empty is OK. If you want to notify update, please fill mail-address.)


Bot check code (240426 と入力してください / Please input 240426.)