1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?php require_once('../Connections/connect.php'); ?>
<?php
$maxRows_prodetail = 1;
$pageNum_prodetail = 0;
if (isset($_GET['pageNum_prodetail'])) {
$pageNum_prodetail = $_GET['pageNum_prodetail'];
}
$startRow_prodetail = $pageNum_prodetail * $maxRows_prodetail;
$colname_prodetail = "-1";
if (isset($_GET['prod'])) {
$colname_prodetail = (get_magic_quotes_gpc()) ? $_GET['prod'] : addslashes($_GET['prod']);
}
mysql_select_db($database_connect, $connect);
$query_prodetail = sprintf("SELECT * FROM produits p, marchand m WHERE idproduits = %s AND p.proprio = m.idmarchand", $colname_prodetail);
$query_limit_prodetail = sprintf("%s LIMIT %d, %d", $query_prodetail, $startRow_prodetail, $maxRows_prodetail);
$prodetail = mysql_query($query_limit_prodetail, $connect) or die(mysql_error());
$row_prodetail = mysql_fetch_assoc($prodetail);
if (isset($_GET['totalRows_prodetail'])) {
$totalRows_prodetail = $_GET['totalRows_prodetail'];
} else {
$all_prodetail = mysql_query($query_prodetail);
$totalRows_prodetail = mysql_num_rows($all_prodetail);
}
$totalPages_prodetail = ceil($totalRows_prodetail/$maxRows_prodetail)-1;
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> .... |
Partager