| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 
 | <?php require_once('../Connections/tsa.php'); ?>
<?php
 
mysql_select_db($database_tsa, $tsa);
$query_rstraitementexp = "SELECT * FROM shop_commande";
$rstraitementexp = mysql_query($query_rstraitementexp, $tsa) or die(mysql_error());
$row_rstraitementexp = mysql_fetch_assoc($rstraitementexp);
$totalRows_rstraitementexp = mysql_num_rows($rstraitementexp);
mysql_data_seek($rstraitementexp, 0);
 
 
if ($_POST['checkexp'] == 'on') 
{
$datejour=date('Y/m/d');
$updateSQL = sprintf("UPDATE shop_commande SET com_expedition='$datejour' WHERE com_id=%s",
                          GetSQLValueString($_POST['com_id'], "int"));
header("Location:expedition.php");
mysql_select_db($database_tsa, $tsa);
  $Result1 = mysql_query($updateSQL, $tsa) or die(mysql_error());
}
 
?> | 
Partager