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 30 31
| <?php
if(isset($_POST['sort_by_ref_desc']))
{
$get_product = $con -> prepare ( "select * from products order by product_id DESC ");
$get_product->execute();
$res = $get_product ->get_result();
while($row_pro = $res->fetch_assoc())
{
$product_id= htmlspecialchars($row_pro['product_id']);
// + 50 autres vars
}
?>
<tr>
<td> <?php echo $product_id; ?> </td>
<td> <?php
$get_profile = $con -> prepare ( "SELECT customer_profile_title FROM customer_profile WHERE customer_profile_id = ?");
$get_profile -> bind_param ("i", $customer_profile_id);
$get_profile -> execute();
$res = $get_profile->get_result();
while($profiles = $res->fetch_assoc())
{
echo htmlspecialchars($profiles['customer_profile_title']);
}
?>
</td>
<td> + 50 autres td comme ci-dessus </td>
</tr> |
Partager