'$now_date' "; $sql.= "order by UPD_DATE desc,UPD_TIME desc"; $rtn = mysql_query( $sql, $con); //if(mysql_num_rows($rtn)>5) $max= 5; //else $max = mysql_num_rows($rtn); $max = mysql_num_rows($rtn); //echo $sql; $sql2 = "select * from TBL_NEWS "; $sql2.= "where KIND=2 and START < '$now_date' and END > '$now_date' "; $sql2.= "order by UPD_DATE desc,UPD_TIME desc"; $rtn2 = mysql_query( $sql2, $con); //echo $sql; //if(mysql_num_rows($rtn2)>5) $max2= 5; //else $max2 = mysql_num_rows($rtn2); $max2 = mysql_num_rows($rtn2); ?>