CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

Probleme avec code PHP

totalbadgone
totalbadgone
Niveau 10
23 juin 2004 à 17:23:41

Salut
J´ai un probleme car EASY PHP ne veut pas afficher ma page.
Voila ce qu´il dit : " Parse error: parse error, unexpected T_LNUMBER, expecting ´,´ or ´;´ in c:\documents and settings\yann\mes documents\site\php\tableau.php on line 9"

Je n´arrive pas a comprendre ce que ca veut dire.

Voila mon code PHP :

< ?php

function Debut() {

echo " <html>
< head>
< /head>
< body>
< table border="0" CELLPADDING="0" CELLSPACING="0">
< tr>
< table border="0" CELLPADDING="0" CELLSPACING="0">
< tr>
< td><img src="logo.jpg"></td>
< td align="center"><div align="center"><img src="titre.jpg"></div></td>
< /tr>
< /table>
< /tr>
< tr>
< table border="0" CELLPADDING="0" CELLSPACING="0">
< tr>
< td width="0"><img src="coinhautgauche.jpg"></td>
< td background="lignehorizontalehaut.jpg"></td>
< td width="0"><img src="coinhautdroit.jpg"></td>
< td width="0"><img src="coinhautgauche.jpg"></td>
< td background="lignehorizontalehaut.jpg"></td>
< td width="0"><img src="coinhautdroit.jpg"></td>
< /tr>
< tr>
< td width="0" background="ligneverticalegauche.jpg"></td>
< td>MENU</td>
< td width="0" background="ligneverticaledroite.jpg"></td>
< td width="0" background="ligneverticalegauche.jpg"></td>
< td width=100%>";

}

function Fin() {

echo " </td>
< td width="0" background="ligneverticaledroite.jpg"></td>
< /tr>
< tr>
< td width="0"><img src="coinbasgauche.jpg"></td>
< td background="lignehorizontalebas.jpg"></td>
< td width="0"><img src="coinbasdroit.jpg"></td>
< td width="0"><img src="coinbasgauche.jpg"></td>
< td background="lignehorizontalebas.jpg"></td>
< td width="0"><img src="coinbasdroit.jpg"></td>
< /tr>
< /table>
< /tr>
< /table>
< /body>
< /html>"; }

? >

Si j´ai bien compris il y a un probleme dans la ligne 9 mais je vois pas ce que c´est o_O
Merci a ceux qui m´aideront.

freedix
freedix
Niveau 10
23 juin 2004 à 17:33:42

Dans ton echo tu as des balises html qui certaines possédent des attributs, et ces attributs ils sont entre guillemets donc au premier guillemet trouvé, la fonction echo pense que elle a fini et ensuite PHP te retourne un erreur de syntaxe. Donc tu peux remplacer ton echo " blablabla"; par echo ´blablabla´;

totalbadgone
totalbadgone
Niveau 10
23 juin 2004 à 17:53:18

Ok merci c´était ca.

Par contre j´ai un autre probleme maintenant. Bon cette page la s´apelle " tableau.php"
J´ai une autre page qui s´apelle " corp.php" et qui utilise la page " tableau.php".
Quand j´ouvre la page " corp.php" et ben les images n´y sont pas et il y a des croix rouges a la place, ca veut dire quoi? Que j´ai pas mis le bon chemin pour l´image? Ou autre chose?
merci

freedix
freedix
Niveau 10
23 juin 2004 à 17:55:39

Que l´image n´est pas trouvée donc le lien est soit incorrect ou l´image n´existe pas ; )

Sous forums
  • Aide à l'achat Mac
  • Internet
  • Macintosh
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Steam Deck
  • Hardware
La vidéo du moment