'.$sql.'
'.mysql_error());
$data = mysql_fetch_array($req);
$num = $data['client_num'];
$nom = $data['nom'];#htmlentities($data['nom'], ENT_QUOTES);
$coment = $data['coment'];
$sql = "
SELECT " . $tblpref ."cont_dev.num, quanti, remise, p_u_jour, marge_jour, uni, article, tot_art_htva, to_tva_art tva
FROM " . $tblpref ."cont_dev
LEFT JOIN " . $tblpref ."article on " . $tblpref ."cont_dev.article_num = " . $tblpref ."article.num
WHERE dev_num = {$num_dev}
";
$req5 = mysql_query($sql) or die('Erreur SQL !
'.$sql.'
'.mysql_error());
//chang_cli.php
$rqSql = "
SELECT num_client, nom
FROM " . $tblpref ."client
WHERE actif != 'non'
";
if ($user_dev == 'r') {
$rqSql .= "
and (" . $tblpref ."client.permi LIKE '{$user_num},'
or " . $tblpref ."client.permi LIKE '%,{$user_num},'
or " . $tblpref ."client.permi LIKE '%,{$user_num},%'
or " . $tblpref ."client.permi LIKE '{$user_num},%')
";
}
$result2 = mysql_query( $rqSql ) or die('Erreur SQL !
'.$rqSql.'
'.mysql_error());
?>
| "> | "> | "> | "> | ">
|
||