MySQL et PHP ... Se servir des données

Eléphant du PHP | 72 Messages

20 sept. 2005, 17:15

Bonjour à toutes et à tous !!!

J'ai enregistrer des informations dans une table MySQL :

Code : Tout sélectionner

id = 1 annee = 4ème Année cours = Anglais L2 titre = American Life soustitre = Livre apercu = http://4dcourspdf.ibelgique.com/apercus/American-Life.jpg url = http://pagesperso.laposte.net/sisitecreato/4dcours/php/Livre-American-Life.php
J'aimerais qu'en envoyant le visiteur sur une page avec un lien de type :

Code : Tout sélectionner

page.php?id=1
Une page s'affiche avec les données qui correspondent à l'id en question avec une mise en page donc ici :

Code : Tout sélectionner

<table border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><FONT FACE="Arial" COLOR="#FFCC00" size="+3">4ème Année</FONT><br></td> </tr> <tr> <td align="center"><FONT FACE="Arial" COLOR="#FFCC00" size="+2">Anglais L2</FONT><br></td> </tr> <tr> <td valign="top" align="center"><br><img border="1" bordercolor="#FFCC00" src="http://4dcourspdf.ibelgique.com/apercus/American-Life.jpg" border="0" /><br> </td> </tr> <tr> <td align="center"><br><FONT FACE="Arial" COLOR="#FFCC00" size="+1">American Life</FONT><br><FONT FACE="Arial" COLOR="#FFCC00">Livre</FONT><br><br><INPUT TYPE=button VALUE="Télécharger" onClick="document.location.href='http://pagesperso.laposte.net/sisitecreato/4dcours/php/Livre-American-Life.php'";><br></td> </tr> </table>
Merci !!!

Mammouth du PHP | 568 Messages

20 sept. 2005, 17:39

Tu touches au fondamentaux là... Je te conseil de parcourir le site PHPdebutant, et notamment ce tutorial...

Bon courage...
Heddi s'est remis à développer pour lui même !
Martina Hingis - Étoile du Tennis
Heddi v. 2007