Page 1 sur 1

Gestion d'image bmp

Posté : 01 sept. 2008, 15:12
par Micka180
Bonjour,

je souhaite affichier une image BMP en miniature stocké dans ma base Mysql (BLOB)
qui puisse s'agrandire sus double click

dans mon code c'est la variable $Photo qui gere le truc.

si vous connaissez des tuto simple pour ce genre de chose c'est bien venu.

Merci de votre aide
 session_start();
$connexion = mysql_connect('xxx','xxx','');// Connexion à la base de donnée 
mysql_select_db('ref_archive',$connexion)  or die('Erreur de selection '.mysql_error()); 
$requete = "SELECT Matricule,Nom,Prenom,Service.id_service,Libelle_Service,Num_Ars,E_Archive,D_Archive,Libelle,type_Archive.id_T_Archive,Libelle_T_Archive,C_Archive,Commentaire,Photo FROM arch_cecaz,service,type_archive  WHERE arch_cecaz.id_t_archive = '".$_POST['Type_Archive']."'&& arch_cecaz.id_service = service.id_service && arch_cecaz.id_t_archive = type_archive.id_t_archive "; 
$resultat = mysql_db_query('ref_archive',$requete,$connexion) or die('Erreur de selection '.mysql_error()); // execution de la requete 
mysql_close($connexion);// Fermeture de la connexion 





while($rows = mysql_fetch_array($resultat)) 
{ 
     $Num_Ars = $rows['Num_Ars'];  
    $Matricule = $rows['Matricule']; 
    $Prenom = $rows['Prenom']; 
    $Nom = $rows['Nom']; 
    $Libelle_Service = $rows['Libelle_Service']; 
    $D_Archive = $rows['D_Archive']; 
    $E_Archive = $rows['E_Archive']; 
    $Libelle_T_Archive = $rows['Libelle_T_Archive']; 
    $C_Archive = $rows['C_Archive'];
    $Commentaire = $rows['Commentaire'];
    $Libelle = $rows['Libelle'];
    $photo = $rows['Photo'];



echo "<tr>\n
<td > $Num_Ars </td>\n 
<td > $Matricule</td>\n 
<td > $Prenom </td>\n 
<td > $Nom </td>\n 
<td > $Libelle_Service </td>\n 
<td > $D_Archive </td>\n 
<td > $E_Archive </td>\n 
<td > $Libelle_T_Archive </td>\n 
<td > $C_Archive </td>\n
<td > $Commentaire </td>\n 
<td > $Libelle </td>\n 
<td > $Photo </td>\n 
</tr>\n";

	
} 


Posté : 02 sept. 2008, 10:59
par Invité
etant donné que je n'ai reçu aucunes reponces je place le sujet en resolu