0'; $sql = "select * from item where $where"; $result = mysql_query( $sql ); $num_rows = mysql_num_rows( $result ); $sql = "select * from item left join author on item.author_id = author.author_id where $where order by " . mysql_real_escape_string( $_GET['sort'] ) . " limit ${_GET['page']}, ${_GET['rows']}"; $result2 = mysql_query( $sql ); //echo $sql; // $delta = 3 * $_GET['rows']; if ( $_GET['page'] - $delta < 0 ) $s = 0; else $s = $_GET['page'] - $delta; if ( $_GET['page'] + $delta > $num_rows ) $e = $num_rows; else $e = $_GET['page'] + $delta; ?>

検索結果件中1件から0件までを表示


価格 円(税込み)
= $_GET['rows'] ) { ?> 前のページ  " . $m / $_GET['rows'] . ""; else echo $m / $_GET['rows'] ?> $_GET['page'] + 1 ) { ?>  次のページ