Nous sommes actuellement le 08 Juil 2026, 01:25

Le fuseau horaire est UTC-5 heures [Heure d’été]




Publier un nouveau sujet Répondre au sujet  [ 5 message(s) ] 
Auteur Message
MessagePublié: 07 Jan 2003, 20:14 
Hors-ligne
Nouvel adepte
Nouvel adepte
Avatar de l’utilisateur

Inscription : 25 Déc 2002, 21:15
Message(s) : 77
Localisation : Montréal
dans ma section reviews, j'affiche le titre, la catégo, image boitier et intro.
j'aimerais un lien qui permettrait d'aller vers l'article au complet

Merci!!!

_________________
Mon pc:
2,400GHz
80gig de disque dur
512 ram
128mo GeForce 4


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: 07 Jan 2003, 20:49 
Hors-ligne
Fidèle
Fidèle
Avatar de l’utilisateur

Inscription : 08 Jan 2002, 11:31
Message(s) : 811
Localisation : Still on Mars
Bon, ...

tu vas voir ton lien avec un newsid dedans

http://www.phpquebec.org/?pid=10&nid=15 par example ici mon news id est 15


Quand tarrive a cette page tu prendre le nid fait une requete dans ta bd where nid=$_GET['nid']

Pis voila engros

Un bon livre PHP MySQL aiderait surment ...

_________________
Pro_PHP

La Conference PHP Québec 2008
La communauté PHP Québec


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: 07 Jan 2003, 20:50 
Hors-ligne
Nouvel adepte
Nouvel adepte
Avatar de l’utilisateur

Inscription : 25 Déc 2002, 21:15
Message(s) : 77
Localisation : Montréal
thanks!!!

_________________
Mon pc:
2,400GHz
80gig de disque dur
512 ram
128mo GeForce 4


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: 08 Jan 2003, 17:43 
Hors-ligne
Nouvel adepte
Nouvel adepte
Avatar de l’utilisateur

Inscription : 25 Déc 2002, 21:15
Message(s) : 77
Localisation : Montréal
ken j'insère le script sa dit une erreur, voici ou j'ai inséré le script:
le lieu est indiqué en rouge ( vers le bas)


<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Gameshots</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#000000" link="#0099FF" vlink="#FFFFFF">
<div align="center" style="width: 986; height: 1208">
<center>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="878" height="118">
<param name=movie value="banner.swf">
<param name=quality value=high>
<embed src="banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="878" height="118">
</embed></object></p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="88%" id="AutoNumber3" background="images/topmenubg.gif" height="24">
<tr>
<td width="100%" height="24">
<div align="center">
<!--webbot bot="Include" U-Include="barretopinc.htm" TAG="BODY" --></div>
</td>
</tr>
</table>
</center>
</div>
<form name="form1" method="get" action="index.htm">
<div align="center">
<div align="center">
<!--webbot bot="Include" U-Include="searchinc.htm" TAG="BODY" --></div>
&nbsp;</div>
</form>
<table width="88%" border="0" height="498" style="border-collapse: collapse" cellpadding="0" cellspacing="0">
<tr>
<td width="18%" height="479" rowspan="10" valign="top">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%" id="AutoNumber1" height="28">
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="26">
<p align="center"><font face="Impact">Magazines</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu.jpg" height="32">
<div align="center">
<!--webbot bot="Include" U-Include="magazinesinc.htm" TAG="BODY" -->
</div>
</tr>
<tr>
<td width="50%" height="25" background="images/back_menu_section.jpg">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_centre.jpg" height="15">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="28">
<p align="center"><font face="Impact">Plateformes</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu.jpg" height="9">
<div align="center">
<div align="center">
<!--webbot bot="Include" u-include="plateformesinc.htm" tag="BODY" --></div>
<p></div>
<tr>
<td width="50%" height="25" background="images/back_menu_section.jpg">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_centre.jpg" height="15">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="26">
<p align="center"><font face="Impact">Gameshots</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu.jpg" height="1">
<div align="center">
<!--webbot bot="Include" U-Include="gameshotsinc.htm" TAG="BODY" -->
</div>
</tr>
<tr>
<td width="50%" height="25" background="images/back_menu_section.jpg">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_centre.jpg" height="15">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="27">
<p align="center"><font face="Impact">Webmasters</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_bas.jpg" height="13">
<div align="center">
<div align="center">
<!--webbot bot="Include" U-Include="webmastersinc.htm" TAG="BODY" --></div>
&nbsp;</div>
<p align="center">&nbsp;</td>
</tr>
</table>
</center>
</div>
<p>&nbsp;
</td>
<td width="66%" height="1" background="images/editotitle.jpg">
<div align="center"><font color="#FFFFFF">Bienvenue sur Gameshots</font></div>
</td>
<td width="16%" height="479" rowspan="10">
<div align="center" style="width: 137; height: 1229">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber2" height="61">
<tr>
<td width="100%" background="images/back_menu_titre.jpg" height="27">
<p align="center"><font face="Impact">NEWS</font>
</td>
</tr>
<tr>
<td width="100%" background="images/back_menu.jpg" height="19">
<div align="center">
<!--webbot bot="Include" U-Include="newsinc.htm" TAG="BODY" -->
</div>
</td>
</tr>
<tr>
<td width="100%" background="images/back_menu_section.jpg" height="24">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_centre.jpg" height="15">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="26">
<p align="center"><font face="Impact">Tests</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu.jpg" height="20">
<div align="center">
<!--webbot bot="Include" U-Include="testinc.htm" TAG="BODY" -->
</div>
</td>
</tr>
<tr>
<td width="50%" height="24" background="images/back_menu_section.jpg">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_centre.jpg" height="15">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="26">
<p align="center"><font face="Impact">Sorties</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu.jpg" height="19">
<div align="center">
<!--webbot bot="Include" U-Include="sortiesinc.htm" TAG="BODY" -->
</div>
</td>
</tr>
<tr>
<td width="50%" height="23" background="images/back_menu_section.jpg">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_centre.jpg" height="15">&nbsp;</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_titre.jpg" height="26">
<p align="center"><font face="Impact">Previews</font>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu.jpg" height="1">
<div align="center">
<div align="center">
<!--webbot bot="Include" U-Include="previewsinc.htm" TAG="BODY" --></div>
&nbsp;</div>
</td>
</tr>
<tr>
<td width="50%" background="images/back_menu_bas.jpg" height="37">
<p>&nbsp;</p>
<p>&nbsp;</p>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td width="66%" height="53" background="images/editbg.jpg">
<div align="left"><font color="#666666"> i <font size="2">Bienvenue
sur GameShots!!!</font></font></div>
</td>
</tr>
<tr>
<td width="66%" height="52" background="images/editbg.jpg">
<div align="center"><font color="#666666" size="2">Nous sommes fiers
de vous annoncer que GameShots sera en fonctiont d&egrave;s le 7 janvier
2004. D'ici cette date, nous esp&eacute;rons que vous parlerez de
nous &agrave; vos ami(e)s!!!</font><br>
</div>
</td>
</tr>
<tr>
<td width="66%" height="52" background="images/editbg.jpg">
<div align="center">
<p><font color="#666666" size="2">Nous sommes en manque de b&eacute;n&eacute;voles!!!
Nous sommes aux trouvailles :</font></p>
<p><font size="2" color="#666666">-de r&eacute;dacteurs</font></p>
<p><font size="2" color="#666666">-de testeurs</font></p>
<p><font size="2" color="#666666">-de programmeurs (php, asp, vb,
java, etc.) </font></p>
<p><font size="2" color="#666666">-et finalement de bons designers.</font></p>
</div>
</td>
</tr>
<tr>
<td width="66%" height="52" background="images/editbg.jpg">
<div align="center"><font color="#666666" size="2">Si vous pensez avoir
l'un ou plusieurs de ces talents, vous n'avez qu'&agrave; nous en
faire part dans la section de recrutement ou sinon contacter <a href="mailto:mattbranche@sympatico.ca"><font color="#0066FF">mattbranche@sympatico.ca</font></a>.</font></div>
</td>
</tr>
<tr>
<td width="66%" height="52" background="images/editbg.jpg">
<div align="center"><font size="2" color="#666666">Merci au nom de toute
l'&eacute;quipe de Gameshots!!!</font></div>
</td>
</tr>
<tr>
<td width="66%" height="14"><img src="images/editbot.jpg"></td>
</tr>
<tr>
<td width="66%" height="52">&nbsp;</td>
</tr>
<tr>
<td width="66%" height="2" background="images/editotitle.jpg">
<div align="center"><font color="#FFFFFF">Quoi de neuf?</font></div>
</td>
</tr>
<tr>
<td width="66%" height="79" background="images/editbg.jpg">
<div align="center">
<div align="center">
<table width="75%" border="0">
<tr>
<td>
<?php
mysql_connect (localhost, gamedragon, yomensuper);

mysql_select_db (gamedragon);

if ($first_name == "")
{$first_name = '%';}

if ($last_name == "")
{$last_name = '%';}

$result = mysql_query ("SELECT * FROM reviews");

if ($row = mysql_fetch_array($result)) {

do {
print $row["titre"];
print (" ");
print $row["console:"];
print (" ");
print $row["cat"];
print ("<br>");
print ("Rédigé par: ");
print $row["login"];
print ("<br>");
print ("------------------------------------------------------------------");
print ("<br>");
echo "<img src="".$row["boitier"]."\" border=\"0\" width=\"105\" height=\"99\">";
print $row["intro"];
print ("<br>");
print <div align="right">("<a href="reviews.php">suite</a>")</div>;<--- c'est ici, lorsqu'on clique sr "suite", je vodrais que la bd soit appronfondi, où inséré le script???
print ("<br>");
print ("<br>");
print ("<br>");
print ("<br>");
print ("<br>");
print ("<br>");
print ("<br>");
print ("<br>");
} while($row = mysql_fetch_array($result));

} else {print "Aucun";}
?>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
<tr>
<td width="18%" height="19">&nbsp; </td>
<td width="66%" height="19"><img border="0" src="images/editbot.jpg"></td>
<td width="16%" height="19">&nbsp; </td>
</tr>
</table>
</center>
</div>
<p align="center">&nbsp;</p>
<p align="center"><font color="#FFFFFF" size="1">Copyrights -2002 2003-</font></p>
<p align="center"><font size="1" color="#FFFFFF">Gameshots inc.</font></p>





Merci!!!

_________________
Mon pc:
2,400GHz
80gig de disque dur
512 ram
128mo GeForce 4


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: 08 Jan 2003, 18:10 
Hors-ligne
Régulier
Régulier

Inscription : 13 Jan 2002, 19:28
Message(s) : 360
et bien fait toi une page

article.php avec a lintérieur une requete selon le ID qui va etre passé en parametre

dans cette requete tu vas avoir genre

SELECT * FROM reviews WHERE ID = '". $_GET["reviewid"] ."'

pi la taffiche toute ce que tu veux a propos dune article ...

dans reviews.php, et bien tu fais <a href="article.php?reviewid=<?$row["ID"]?>">Suite</a>

Bien sur dans ta base de données il te faut un ID qui lui sera unique pour ne pas créer de doublons et d'erreur


Haut
 Profil  
Répondre en citant  
Afficher les messages publiés depuis :  Trier par  
Publier un nouveau sujet Répondre au sujet  [ 5 message(s) ] 

Le fuseau horaire est UTC-5 heures [Heure d’été]


Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 1 invité


Vous ne pouvez pas publier de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum

Recherche de:
Aller vers :  
Propulsé par phpBB® Forum Software © phpBB Group
Traduction et support en françaisHébergement de site