Problème affichage photo
Résolu
tridam23
Messages postés
99
Date d'inscription
Statut
Membre
Dernière intervention
-
tridam23 Messages postés 99 Date d'inscription Statut Membre Dernière intervention -
tridam23 Messages postés 99 Date d'inscription Statut Membre Dernière intervention -
bonjour dans ce code, que jordane de CCM m'a bcp aidé
c'est les détails pour la fiche à imprimer.
mais la photo ne p s'affiche pas. pouvez vous m'aider?
Merci
www.tremvi.com www.bawolo.com www.biz243.com
c'est les détails pour la fiche à imprimer.
mais la photo ne p s'affiche pas. pouvez vous m'aider?
Merci
<?php require_once("connection.php"); $codeEleve = isset($_GET['code'])?$_GET['code']:NULL; if($codeEleve ){ $sql = "select * from ELEVES WHERE CODE= '$codeEleve ' "; $rs=mysql_query($sql) or die(mysql_error() . "<br><b> Requete :</b><br>".$sql); }else{ echo "<br> AUCUN CODE ELEVE PASSE EN PARAMETRES !<br>"; print_r($_GET); } ?> <html> <head> <meta charset="utf-8"> <title>Détails Elève</title> <link href="stle.css" rel="stylesheet" type="text/css"> </head> <body> <table border="0"> <tbody> <tr> <td><h2>Jewels International School of Kinshasa <br> 6705, Av. O.U.A., Commune de Ngaliema Kinshasa, <br> Democratic Republic of Congo</h2></td> <td><img src="logo/logo.png" width="88" height="89" alt=""/></td> </tr> </tbody> </table> <p align="center"> </p> <?php while ($ET = mysql_fetch_assoc($rs)) { echo "<br> CODE :".$ET['CODE']; echo "<br> PHOTO :<img src='images/'".$ET['PHOTO']."' width='90' height='113'></img>"; echo "<br>Grade/Classe :".$ET['CLASSE']; echo "<br>Secetion :".$ET['SECTION']; echo "<br>Groupement :".$ET['GROUPEMENT']; echo "<br>Date of inscription/Date d'Inscription :".$ET['INSCRIPTION']; echo "<br>Name of Student/Nom de l'étudiant: Last/Nom: ".$ET['NOM']; echo "<br>Name/Prenom : ".$ET['PRENOM']; echo "<br>Middle/Post-nom : ".$ET['POSTNOM']; echo "<br>Date of Birth/Date de naissance : ".$ET['NAISSANCE']; echo "<br>Gender/Sexe : ".$ET['SEXE']; echo "<br>COUNTRY OF BIRTH/PAYS DE NAISSANCE : ".$ET['PAYS']; echo "<br>NATIONALITY/NATIONALITE : ".$ET['NATIONALITE']; echo "<br>ADDRESS/ADRESSE : ".$ET['ADRESSE']; echo "<br>NAME BY WHICH THE CHILD IS MOST FREQUENTLY CALLED/NOM PAR LEQUEL L'ENFANT EST SOUVENT IDENTIFIE : ".$ET['SURNOM']; echo "<br>RELIGION :".$ET['RELIGION']; echo "<br>FATHER'S OR GUARDIAN'S NAME/NOM DU PERE ou TUTEUR : ".$ET['PERE']; echo "<br>PHONE N°/NUMERO TEL. :".$ET['TELPERE']; echo "<br>HOME ADDRESS/ADRESSE DU DOMICILE :".$ET['ADRESSE1']; echo "<br>E-MAIL ADDRESS/ADRESSE ELECTRONIQUE : ".$ET['EMAIL']; echo "<br>EMPLOYER/EMPLOYEUR - Company/Entreprise :".$ET['EMPLOYEUR']; echo "<br>EMPLOYER'S ADDRESS/ADRESSE DE L'EMPLOYEUR :".$ET['ADRESSEEMP']; echo "<br>MOTHER'S OR GUARDIAN'S NAME/NOM DE LA MERE ou TUTEUR : ".$ET['MERE']; echo "<br>PHONE N°/NUMERO TEL. :".$ET['TELMERE']; echo "<br>HOME ADDRESS/ADRESSE DU DOMICILE (If different from above/Si différente de celle-ci-haut mentionnée):".$ET['ADRESSE2']; echo "<br>E-MAIL ADDRESS/ADRESSE ELECTRONIQUE : ".$ET['EMAIL2']; echo "<br>EMPLOYER/EMPLOYEUR - Company/Entreprise :".$ET['EMPLOYEUR1']; echo "<br>EMPLOYER'S ADDRESS/ADRESSE DE L'EMPLOYEUR :".$ET['ADRESSEEMP2']; echo "<br>If neither parent nor guardian can be reached in an emergency, contact:/En cas d'urgence, si le parent ou le tuteur est injoignable, contacter: NAME/NOM : ".$ET['NOM1']; echo "<br>ADDRESS/ADRESSE :".$ET['ADRESSE5']; echo "<br>PHONE N°/NUM. TEL. :".$ET['TEL1']; echo "<br>NAME/NOM : ".$ET['NOM2']; echo "<br>ADDRESS/ADRESSE :".$ET['ADRESSE6']; echo "<br>PHONE N°/NUM. TEL. :".$ET['TEL2']; echo "<br>CHILD'S DOCTOR/MEDECIN DE L'ENFANT : ".$ET['MEDENFT']; echo "<br>PHONE N°/NUM. TEL. :".$ET['TELMED']; echo "<br>DOCTOR'S ADDRESS/ADRESSE DU MEDECIN :".$ET['ADRESSEMED']; echo "<br>CHILD'S DENTIST/DENTISTE DE L'ENFANT : ".$ET['DENTENFT']; echo "<br>PHONE N°/NUM. TEL :".$ET['TELDENT']; echo "<br>DENTIST'S ADDRESS/ADRESSE DU DENTISTE :".$ET['ADRESSEDENT']; echo "<br>Please give any information concerning your child which you think may be helpful to us. (PLAY AND EATING HABITS, FEARS, LIKES AND DISLIKES, CHRONIC HEALTH CONDITIONS & MEDICATIONS - ASTHMA, ALLERGIES, ETC.)/ Veuillez fournir toute information utile concernant l'enfant. (DIVERTISSEMENT & REGIME ALIMENTAIRE, PEURS, PREFERENCES & AVERSIONS, MALADIES CHRONIQUES & MEDICAMENTS - ASTHME, ALLERGIES, ETC. : ".$ET['UTILE']; echo "<br>Other children in family/Autres enfants dans la famille: :".$ET['FAM1']; echo "<br>Age :".$ET['AGE1']; echo "<br>Gender/Sexe : Homme/Male : ".$ET['SEX1']; echo "<br>Other children in family/Autres enfants dans la famille: :".$ET['FAM2']; echo "<br>Age: ".$ET['AGE2']; echo "<br>Gender/Sexe : Homme/Male : ".$ET['SEX2']; echo "<br>Other children in family/Autres enfants dans la famille: :".$ET['FAM3']; echo "<br>Age :".$ET['AGE3']; echo "<br>Gender/Sexe : Homme/Male : ".$ET['SEX3']; echo "<br>Other children in family/Autres enfants dans la famille: :".$ET['FAM4']; echo "<br>Age: ".$ET['AGE4']; echo "<br>Gender/Sexe : Homme/Male : ".$ET['SEX4']; echo "<br>List other adults in the family (relation to child)/Autres enfants dans la famille (relations avec l'enfant):".$ET['AUTRESENFT']; echo "<br> IMMUNIZATION RECORD/CARNET DE VACCINATION: (Please enter the date of the last immunization/Veuillez indiquer la date du dernier vaccine.) Immunization/Vaccin DPT/Diphtérie (Date)".$ET['DATEDPT']; echo "<br>Immunization/Vaccin MMR/Rougeole (Date) : ".$ET['DATEROUGEOLE']; echo "<br>Immunization/Vaccin Oral Polio/Polio Oral (Date) :".$ET['DATEPOLIO']; echo "<br>Immunization/Vaccin Yellow fever/FièvreJaune (Date) :".$ET['DATEJAUNE']; echo "<br>Immunization/Vaccin Cholera (Date) : ".$ET['DATECHOLERA']; echo "<br>Immunization/Vaccin Other/Autre (Date) : ".$ET['DATEAUTRES']; echo "<br>Should an emergency arise, I hereby give my permission to the school to call a doctor for medical or surgical care for my child. / En cas d'urgence, j'autorise l'école à faire appel à un médecin pour une éventuelle intervention médicale ou chirurgicale en faveur de mon enfant:".$ET['AUTREMED']; echo "<br>It is understood that a conscientious effort will be made to locate me or/Il est entendu qu'un effort devra être fourni au préalable pour me localiser ou: ".$ET['ADRESSEAUTRE']; echo "<br>before any action is taken, but if it is not possible to contact me, I will accept this action. I accept all the emergency treatment charges/avant d'entreprendre quelque action que ce soit; mais s'il n'est pas possible de me contacter, j'accepterai toute action entreprise par l'école. Je m'engage donc à m'acquitter des frais d'urgence. :".$ET['DATEFIN']; echo "<br>Date :".$ET['DATEFIN']; echo "<br>FIELD TRIPS/VISITES GUIDEES I give permission for child to go on trips away from the premises of the school, whether on foot or by vehicle. Pour les activités parascolaires, j'autorise aussi mon enfant d'aller en visite guidée en dehors de l'école, à pied ou en véhicule, sous l'encadrement de l'enseignant. : ".$ET['DATEGUIDE']; echo "<br>Date :".$ET['DATEGUIDE']; echo "<br>PREVIOUS SCHOOL/ECOLE ANTERIEURE NAME OF PREVIOUS SCHOOL ATTENDED (IF NOT JEWELS)/NOM DE L'ECOLE PRECEDENTE (SI PAS JEWELS) :".$ET['ECOLEFREQ']; echo "<br>DATE STUDENT ATTENDED/PERIODE DE FREQUENTATION: From/De: ".$ET['FREQ1']; echo "<br>To/A :".$ET['FREQ2']; echo "<br>GRADE COMPLETED/CLASSE FREQUENTEE :".$ET['CLASSEFREQ']; } //fin du while ?> <script type="text/javascript"> window.print() ; </script> </body> </html>
www.tremvi.com www.bawolo.com www.biz243.com
A voir également:
- Problème affichage photo
- Google photo - Télécharger - Albums photo
- Google maps photo maison - Guide
- Photo filtre 7 gratuit - Télécharger - Retouche d'image
- Partage photo - Guide
- Affichage double ecran - Guide
1 réponse
Salut,
Remplace la ligne
par
Si l'image ne s'affiche toujours pas, regarde la valeur de l'attribut src dans le code source de ta page et vérifie que le chemin renseigné est correct.
Bonne journée
Remplace la ligne
echo "<br> PHOTO :<img src='images/'".$ET['PHOTO']."' width='90' height='113'></img>";
par
echo "<br> PHOTO :<img src='images/".$ET['PHOTO']."' width='90' height='113' />";
Si l'image ne s'affiche toujours pas, regarde la valeur de l'attribut src dans le code source de ta page et vérifie que le chemin renseigné est correct.
Bonne journée
dur dur d'etre apprenti !