par
Mazarini » 31 août 2012, 15:52
Je pense plutot à :
<?PHP
$sql = "SELECT `program` AS 'Program 1', `approval` AS 'Approval', `collaborators` AS 'Collaborators', FROM programme, formation where programme.etudes=formation.etudes and formation.etudes='$monfichier'";
$cherche = mysql_query($sql) or die($sql.'<br>'.mysql_error());
while($a=mysql_fetch_array($cherche)){
echo 'Programme : ',$a['program 1'],' approval : ', $a['Approval'], 'collaborators : ', $a['Collaborators'],'<br>';
}
?>
Mais la ligne echo est à revoir pour le formatage, mais elle contient les info que tu veux.
Je pense plutot à :
[php]<?PHP
$sql = "SELECT `program` AS 'Program 1', `approval` AS 'Approval', `collaborators` AS 'Collaborators', FROM programme, formation where programme.etudes=formation.etudes and formation.etudes='$monfichier'";
$cherche = mysql_query($sql) or die($sql.'<br>'.mysql_error());
while($a=mysql_fetch_array($cherche)){
echo 'Programme : ',$a['program 1'],' approval : ', $a['Approval'], 'collaborators : ', $a['Collaborators'],'<br>';
}
?>[/php]
Mais la ligne echo est à revoir pour le formatage, mais elle contient les info que tu veux.