Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2622 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  tableau php html

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

tableau php html

n°279768
ztnarfff
Posté le 05-01-2003 à 20:57:22  profilanswer
 

voila je veux afficher un tableau dans lequel se range des donnés mai sil ne fonctionne pas pouvez vous jetez un oeil. Merci
 
 
  print("
 
<center>
 <h1>  
Moulinets Etang  
<br> <br>  
<center> <table border="1" cellpadding="2" cellspacing="0" bordercolor="#0000FF">
 <tr width="100">
  <td align="center" width="104"> ".$nom." </td>
  <td align="center" width="104"><img src=".$photo." height=50> </td>
  <td align="center" width="104">".$car." </td>
  <td align="center" width="104">".$peuro." </td>
  <td align="center" width="104">".$pf." </td>
</tr>
 </table>" );
  $i++;
}
?>

mood
Publicité
Posté le 05-01-2003 à 20:57:22  profilanswer
 

n°279774
sielfried
Posté le 05-01-2003 à 21:08:22  profilanswer
 

Remplace tes " par des \" (sauf ceux de print), déjà.


---------------
StarCraft Professional Gaming Database | [Ze Topic] Starcraft/BroodWar
n°279808
Kyle
Posté le 05-01-2003 à 23:27:12  profilanswer
 

c'est la meme erreur que sur ton autre topic ...

n°279857
jackmount
Posté le 06-01-2003 à 04:00:33  profilanswer
 

dans ton code html au lieu d'utiliser des " utilise des '....

n°279863
Profil sup​primé
Posté le 06-01-2003 à 07:15:49  answer
 

echo  "
 
<center>
<h1>  
Moulinets Etang  
<br> <br>  
<center> <table border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#0000FF\">
<tr width=\"100\">
 <td align=\"center\" width=\"104\"> ".$nom." </td>
 <td align=\"center\" width=\"104\"><img src=".$photo." height=\"50\"> </td>
 <td align=\"cente\r" width=\"104\">".$car." </td>
 <td align=\"center\" width=\"104\">".$peuro." </td>
 <td align=\"center\" width=\"104\">".$pf." </td>
</tr>
</table>" );
 $i++;
}
?>

n°279907
Schimz
Bouge pas, meurs, ressuscite !
Posté le 06-01-2003 à 10:38:45  profilanswer
 

tu te prends un peu la tête à ouvrir un print avec " et à mettre \ partout ailleurs.
 
comme ça, c'est beaucoup + simple et si tu as la coloration syntaxique sur ton editeur ça differencie les variable des chaines :
print '<td width="100">'.$var.'</td>';
 
print ''; --> affichage sans interpretation (print '$var'; va afficher $var)
print ""; --> affichage avec interpretation (print "$var"; va afficher la valeur de var)


Message édité par Schimz le 06-01-2003 à 10:39:17

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  tableau php html

 

Sujets relatifs
[HTML, JS] Avoir une image fixe à droite d'un tableau,qui lui,scrolle?[HTML] Problème avec TABLEAU
[HTML] Y'a moyen de transformer un tableau....[HTML, JS] tri d'un tableau
[html] form ds un tableau change sa taille ...Gros prob de décalage dans tableau HTML
[HTML] Pb de BACKGROUNG dans un tableau ...Le topic qui a été effacé... (Tableau HTML de merde explosé)
[Javascript/HTML] : ligne de tableau en surbrillance sur mouse over ?[HTML, CSS] Couleur d'un tableau sur fichier .css ?
Plus de sujets relatifs à : tableau php html


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR