
06-02-2010, 00:34
|
 |
|
|
חבר מתאריך: 07.04.09
הודעות: 95
|
|
בעת שליפת נתונים הדף מתחיל מ 0
אני שולף נתונים מהמסד
עם השאילתות הבאות
קוד PHP:
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1 ; mysql_select_db($database_insert, $insert); $query_Recordset1 = "SELECT * FROM `insert` ORDER BY title ASC"; $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1); $Recordset1 = mysql_query($query_limit_Recordset1, $insert) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); if (isset($_GET['totalRows_Recordset1'])) { $totalRows_Recordset1 = $_GET['totalRows_Recordset1']; } else { $all_Recordset1 = mysql_query($query_Recordset1); $totalRows_Recordset1 = mysql_num_rows($all_Recordset1); } $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
ונוצרים לי כמה דפים דינמיים אבל הדף מתחיל ממספר 0
ואני רוצה שיתחיל ממספר אחד כיצד ניתן לעשות זאת ?
תודה מראש לכולם
|