Citation :
$id_test=$_SESSION['id1'];
//connexion à la base
mysql_select_db("$bddname", $connect); $sqlconnect = "SELECT * FROM clients WHERE id='$id_test'";
mysql_query($sqlconnect);
$result1 = @MYSQL_QUERY($sqlconnect) ;
$i=0;
$sqlid= mysql_result($result1,$i,"id" ) ;
$sqlraison_sociale= mysql_result($result1,$i,"raison_sociale" ) ;
$sqlfonction= mysql_result($result1,$i,"fonction" ) ;
$sqlnom= mysql_result($result1,$i,"nom" ) ;
$sqlprenom= mysql_result($result1,$i,"prenom" ) ;
$sqladresse= mysql_result($result1,$i,"adresse" ) ;
$sqlcp= mysql_result($result1,$i,"cp" ) ;
$sqlville= mysql_result($result1,$i,"ville" ) ;
$sqltelephone= mysql_result($result1,$i,"telephone" ) ;
$sqlfax= mysql_result($result1,$i,"fax" ) ;
$sqlemail= mysql_result($result1,$i,"email" ) ;
echo mysql_error(); $sqlconnect2 = "SELECT * FROM enlevement WHERE id='$id_test'";
mysql_query($sqlconnect2);
$result2 = @MYSQL_QUERY($sqlconnect2) ;
$i=0;
$sqlraison_sociale1= mysql_result($result2,$i,"raison_sociale" ) ;
$sqlfonction1= mysql_result($result2,$i,"fonction" ) ;
$sqlnom1= mysql_result($result2,$i,"nom" ) ;
$sqlprenom1= mysql_result($result2,$i,"prenom" ) ;
$sqladresse1= mysql_result($result2,$i,"adresse" ) ;
$sqlcp1= mysql_result($result2,$i,"cp" ) ;
$sqlville1= mysql_result($result2,$i,"ville" ) ;
$sqltelephone1= mysql_result($result2,$i,"telephone" ) ;
echo mysql_error(); $sqlconnect3 = "SELECT * FROM livraison WHERE id='$id_test'";
mysql_query($sqlconnect3);
$result3 = @MYSQL_QUERY($sqlconnect3) ;
$i=0;
$sqlraison_sociale2= mysql_result($result3,$i,"raison_sociale" ) ;
$sqlfonction2= mysql_result($result3,$i,"fonction" ) ;
$sqlnom2= mysql_result($result3,$i,"nom" ) ;
$sqlprenom2= mysql_result($result3,$i,"prenom" ) ;
$sqladresse2= mysql_result($result3,$i,"adresse" ) ;
$sqlcp2= mysql_result($result3,$i,"cp" ) ;
$sqlville2= mysql_result($result3,$i,"ville" ) ;
$sqltelephone2= mysql_result($result3,$i,"telephone" ) ;
echo mysql_error(); mysql_close($connect);
|