1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| <form name="form2" method="post" action="">
<table width="723" height="277" border="0">
<tr>
<td height="35" valign="top"> Veuillez choisir la catégorie du projet : </td>
<td height="35" valign="top">
<select name="desig" id="desig" >
<?php
include ("mabase.php");
$req = "select * from typep";
$res =mysql_db_query($nombd,$req,$lien) or die("Problème de connexion");
while ($ligne=mysql_fetch_array($res))
{
echo ("<option value='".$ligne['idt']."'>".$ligne['design']."</option>");
}
$req = "select description, idimg,design
from image, typep, projet
where image.idp=projet.idp
and projet.idt=typep.idt
and design= ".$_bet["id"];
$res=mysql_db_query($nombd,$req,$lien) or die("Problème au niveau de la base");
mysql_num_rows($res);
while ($ligne=mysql_fetch_array($res))
{
?>
</select></td>
</tr>
<tr>
<td width="364" height="181">
<img src="<?php echo $ligne["idimg"];?>"> </td>
<td width="349" valign="top">Description :
<?php
echo $ligne["description"];}?> </td>
</tr>
</table>
</form> |
Partager