Bonjour,
je pense que le problème est dans les accolade voici ce programme mais il m'affiche rien aider moi svp
<?php
session_start();
if(isset($_SESSION['log_cli'])){
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Mes commandes</title>
<style type="text/css">
<!--
body {
background-repeat: repeat-x;
background-image: url(image/fond_degrader.jpg);
}
.Style1 {
font-size: x-large;
font-style: italic;
font-weight: bold;
}
#centre {
width: 850px;
margin: auto;
margin-top:15px;
text-align: left;
border-style: solid solid none solid;
border-color: #564EA3;
border-width: 1px;
background: #ffffff;
-moz-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
-webkit-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
-khtml-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
}
#r {
background-image: url(image/9609580-multicolore-banniere-ondee-vif-avec-des-etoiles.jpg);
width: 850px;
-moz-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
-webkit-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
-khtml-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
}
#ok {
overflow:scroll;
height:495px;
border-style: solid solid none solid;
border-color: #677D92;
border-width: 2px;
margin-top:0px;
/* Haurizental/Vertical (H-Gauche H-Droite B-Droite B-Gauche)*/
-moz-border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
-webkit-border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
-khtml-border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
}
#sam {
border-style: solid solid none solid;
border-color: #677D92;
border-width: 2px;
background:#ffffff;
/* Haurizental/Vertical (H-Gauche H-Droite B-Droite B-Gauche)*/
-moz-border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
-webkit-border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
-khtml-border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
border-radius: 15px 15px 0px 0px / 15px 15px 0px 0px;
}
#g img{
/* Haurizental/Vertical (H-Gauche H-Droite B-Droite B-Gauche)*/
-moz-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
-webkit-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
-khtml-border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
border-radius: 15px 15px 15px 15px / 15px 15px 15px 15px;
}
.Style2 {
font-size: 36px;
font-style: italic;
font-weight: bold;
}
-->
</style><script language="javascript">
function confirme( identifiant )
{
var confirmation = confirm( "Voulez vous vraiment supprimer cette commande ?" ) ;
if( confirmation )
{
document.location.href = "supprimer_commande.php?idcmd="+identifiant ;
}
}
</script> </head>
<body><div id="centre"><div id="r">
<table width="848" border="0">
<tr>
<td width="842" height="112"><div align="center" class="Style2">DBS AUTO </div></td>
</tr>
</table></div>
<table width="841" border="0">
<tr>
<td width="209" height="350"><div id="sam">
<table width="205" height="495" border="0">
<tr>
<td width="199" height="66"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="BGCOLOR" value="" />
<param name="movie" value="button106.swf" />
<param name="quality" value="high" />
<embed src="button106.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="58"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="movie" value="button118.swf" />
<param name="quality" value="high" />
<embed src="button118.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="64"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="BGCOLOR" value="" />
<param name="movie" value="button19.swf" />
<param name="quality" value="high" />
<embed src="button19.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="60"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="BGCOLOR" value="" />
<param name="movie" value="button83.swf" />
<param name="quality" value="high" />
<embed src="button83.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="54"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="movie" value="button105.swf" />
<param name="quality" value="high" />
<embed src="button105.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="52"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="BGCOLOR" value="" />
<param name="movie" value="button96.swf" />
<param name="quality" value="high" />
<embed src="button96.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="52"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="movie" value="button107.swf" />
<param name="quality" value="high" />
<embed src="button107.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
<tr>
<td height="48"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://fpdownload2.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="199" height="35">
<param name="movie" value="button85.swf" />
<param name="quality" value="high" />
<embed src="button85.swf" quality="high" pluginspage="
https://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="199" height="35" ></embed>
</object></td>
</tr>
</table>
</div></td>
<td width="622"><div id="ok"><table width="618" height="100" border="0">
<tr>
<td width="612" height="77">
<?php
//connexion a la base
$connection = mysql_connect("localhost","root","");
if ( ! $connection )
die ("connection impossible");
//On sélectionne la BDD
$mabasededonnee="bdd";
mysql_select_db($mabasededonnee) or die ("pas de connection");
$e=$_SESSION['log_cli'];
$req=mysql_query("select * from commande_vehicule")or die( mysql_error() );
$i=0;
while ($i<mysql_num_rows($req))
{
$lign=mysql_fetch_row($req);
$req=mysql_query("select * from commande where (login_client='$e') AND (valid_cmd='0') AND (num_com='".$lign[2]."')") or die( mysql_error() );}
//$req=mysql_query("select * from commande where ((login_client='$e') && (valid_cmd='0') && (num_com='".$lign[2]."'") or die( mysql_error() );}
$i=0;
while ($i<mysql_num_rows($req))
{
$ligne=mysql_fetch_row($req);
echo"
<table class='affich' align='center' cellspacing='1' >
<tr>
<td width=70%>
<b>Numéro commande :</b> ".$ligne[0]."
";$r=mysql_query("select * from client where login_client='$ligne[1]'") ;
$li=mysql_fetch_row($r);
echo"
<br><b>Nom client : </b>".$li[1]."
<br><b>Prénom client : </b>".$li[2]."<br>
<br><b>Quantité X Prix U</b> | <b>Nom Produit</b> <br><br>
";
$az=mysql_query("select * from commande_vehicule where num_commande='$ligne[0]'") ;
$k=0;
while ($k<mysql_num_rows($az))
{
$zz=mysql_fetch_row($az);
$produit=mysql_query("select * from vehicule where num_vehi='$zz[1]'") ;
$pro=mysql_fetch_row($produit);
echo "(".$zz[3]." X ".$pro[19]." DA) -------- ".$pro[4]."<br>";
$k=$k+1;
};echo"
<br><b>Montant Total à payer : </b>".$ligne[2]." DA
</td>
<td align=center>
<div id='aj_panier'><a href=\"#\" onClick=\"confirme('".$ligne[0]."')\" >Annuler Commande</a>
</div>";
echo"</td></tr>
</table>";
echo"";
echo"<HR>";
$i=$i+1;
}
$req=mysql_query("select * from commande_vehicule")or die( mysql_error() );
$i=0;
while ($i<mysql_num_rows($req))
{
$lign=mysql_fetch_row($req);
$req=mysql_query("select * from commande where (login_client='$e') AND (valid_cmd='1') AND (num_com='".$lign[2]."')") or die( mysql_error() );
//$req=mysql_query("select * from commande where ((login_client='$e') && (valid_cmd='1'))");
$i=0;
while ($i<mysql_num_rows($req))
{
$ligne=mysql_fetch_row($req);
echo"
<table class='affich' align='center' cellspacing='1' >
<tr>
<td width=70%>
<b>Numéro commande :</b> ".$ligne[0]."
";$r=mysql_query("select * from client where login_client='$ligne[1]'");
$li=mysql_fetch_row($r);
echo"
<br><b>Nom client : </b>".$li[1]."
<br><b>Prénom client : </b>".$li[2]."<br>
<br><b>Quantité X Prix U</b> | <b>Nom Produit</b> <br><br>
";
$az=mysql_query("select * from commande_vehicule where num_commande='$ligne[0]'");
$k=0;
while ($k<mysql_num_rows($az))
{
$zz=mysql_fetch_row($az);
$produit=mysql_query("select * from vehicule where num_vehi='$zz[1]'");
$pro=mysql_fetch_row($produit);
echo "(".$zz[3]." X ".$pro[19]." DA) -------- ".$pro[4]."<br>";
$k=$k+1;
};echo"
<br><b>Montant Total à payer : </b>".$ligne[2]." DA
</td>
<td align=center>
<div id='commande_OK'><a>Commande Validée</a>
</div></td>
</tr>
</table>";
echo"";
echo"<HR>";
$i=$i+1;
}}
$req=mysql_query("select * from commande_vehicule")or die( mysql_error() );
$i=0;
while ($i<mysql_num_rows($req))
{
$lign=mysql_fetch_row($req);
$req=mysql_query("select * from commande where (login_client='$e') AND (valid_cmd='-1') AND (num_com='".$lign[2]."')") or die( mysql_error() );}
//$req=mysql_query("select * from commande where ((login_client='$e') && (valid_cmd='-1'))");
$i=0;
while ($i<mysql_num_rows($req))
{
$ligne=mysql_fetch_row($req);
echo"
<table class='affich' align='center' cellspacing='1' >
<tr>
<td width=70%>
<b>Numéro commande :</b> ".$ligne[0]."
";$r=mysql_query("select * from client where login_client='$ligne[1]'");
$li=mysql_fetch_row($r);
echo"
<br><b>Nom client : </b>".$li[1]."
<br><b>Prénom client : </b>".$li[2]."<br>
<br><b>Quantité X Prix U</b> | <b>Nom Produit</b> <br><br>
";
$az=mysql_query("select * from 'commande_vehicule' where num_commande='$ligne[0]'");
$k=0;
while ($k<mysql_num_rows($az))
{
$zz=mysql_fetch_row($az);
$produit=mysql_query("select * from vehicule where num_vehi='$zz[1]'");
$pro=mysql_fetch_row($produit);
echo "(".$zz[3]." X ".$pro[19]." DA) -------- ".$pro[4]."<br>";
$k=$k+1;
};echo"
<br><b>Montant Total à payer : </b>".$ligne[2]." DA
</td>
<td>
<div id='commande_Non'><a>Commande Rejetée<br>
Veuillez contacter le vendeur</a>
</div>
</td></tr>
</table>";
echo"";
echo"<HR>";
$i=$i+1;
}
mysql_free_result($req);
mysql_close($connection); //Puis on se déconnecte
?>
</td>
</tr>
<tr>
<td height="256"><p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr>
<td height="21"><p> </p> </td>
</tr>
</table>
</div></td>
</tr>
</table></div>
</body>
</html>
<?php
}else{header("Location: authentification_client.php");}
?>