Transformer le resultat d'une requette en lien
Dernière réponse : dans Programmation
salut . je suis bloqué sur mon devoir.
je veux que les resultats de ma requete soi des lien ;
je m'explique ;
je fait une requtète sur ma base donnée qui m'affiche : nom
moi je veux que nom qui s'affiche soi une nouveau lien de sote que quand je click sur nom ca m'affiche les renseignement sur cette personne .
svp aider moi.
dite moi si vous avec besoin de c ke jai deja fait pour mieu me guider
je veux que les resultats de ma requete soi des lien ;
je m'explique ;
je fait une requtète sur ma base donnée qui m'affiche : nom
moi je veux que nom qui s'affiche soi une nouveau lien de sote que quand je click sur nom ca m'affiche les renseignement sur cette personne .
svp aider moi.
dite moi si vous avec besoin de c ke jai deja fait pour mieu me guider
Autres pages sur : transformer resultat requette lien
Lassé par la pub ? Créez un compte
voici mon code
code:
code:
<?php $_POST["nom"]=""; $_POST["prenom"]=""; $nom=trim($_POST["nom"]); $prenom=trim($_POST["prenom"]); $color=array('#333333','#999999'); $i=0; $db = mysql_connect('localhost', 'root', '') or die(mysql_error()); mysql_select_db('go&ga',$db) or die(mysql_error()); $sql = "SELECT login,age,ville FROM utilisateurs WHERE privilege='user' ORDER BY nom ASC"; $req = mysql_query($sql) ; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"> <html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Document sans titre</title> <style type="text/css"> <!-- .Style3 {color: #FFFFFF} .Style4 {color: #FFFFFF; font-weight: bold; } .Style6 { color: #FF00FF; font-size: xx-large; } .Style8 {color: #666666} .Style13 {color: #666666; font-size: 14px; } .Style9 { font-size: 10px; color: #999999; } .Style10 {color: #0000FF} .Style11 {font-size: 10px} .Style12 {font-size: 24px} --> </style> </head> <body> <div align="center"> <h1 align="left"> </h1> <table width="200" border="0" align="right"> <tr> <td> </td> <td><div align="right"><a href="go&ga.php">acceuil</a></div></td> </tr> </table> </div> <div align="right"></div> <p> </p> <table width="1058" height="175" border="0" align="left"> <tr> <td width="244"><div align="center" class="Style6"> <p>go&ga</p> <p><span class="Style9">rencontre de nouvelles personnes </span></p> </div></td> <td width="149"><span class="Style8">personnes à proximité </span></td> <td width="63"><span class="Style8">Messages</span></td> <td width="78"><div align="center" class="Style8">profil</div></td> <td width="40"><span class="Style8"></span></td> <td width="97"><span class="Style13"> Paramètre. </span></td> <td width="97"><span class="Style8">Déconnection</span></td> <td width="261"><span class="Style8"><span class="Style11">Saisis tes informations</span> <span class="Style11">d'identification</span>. <a href="admin.php">Inscris-toi ici</a> <span class="Style11">si tu ne l'es pas encore</span></span></td> </tr> <tr> <td colspan="8"><table width="1038" border="0" align="center"> <tr> <td width="37"> </td> <td width="100"><img src="1.jpg" alt="1" width="100" height="97" /></td> <td width="100"><img src="2.jpg" alt="1" width="100" height="97" /></td> <td width="100"><img src="3.jpg" alt="1" width="100" height="97" /></td> <td width="102"><img src="4.jpg" alt="1" width="100" height="97" /></td> <td width="103"><img src="5.jpg" alt="1"width="100" height="97" /></td> <td width="101"><img src="6.jpg" alt="1" width="100" height="97"/></td> <td width="105"><img src="7.jpg" alt="1" width="100" height="97" /></td> <td width="37"><img src="8.jpg" alt="1" width="100" height="97" /></td> <td width="37"><img src="9.jpg" alt="1"width="100" height="97" /></td> <td width="37"><img src="10.jpg" alt="1" width="100" height="97" /></td> <td width="37"> </td> <td width="60"> </td> </tr> </table></td> </tr> <tr> <td colspan="8"><p> </p> <p><span class="Style12">Personnes en proximité dans</span> <span class="Style10">ABIDJAN</span> <span class="Style11">changer</span> </p></td> </tr> <tr> <td colspan="8"><table width="742" border="0" align="center" bgcolor="#CCCCCC"> <tr> <td width="163">je veux </td> <td colspan="2">Avec qui ? </td> <td width="136">Age</td> <td width="42"> </td> <td width="8"> </td> <td width="169" rowspan="2">RECHERCHE</td> </tr> <tr> <td><form id="form1" name="form1" method="post" action=""> <label> <select name="select4"> <option>flaner</option> <option>écouter de la musique</option> <option>avoir un rendez vous</option> <option>naviguer</option> <option>dejeuner</option> </select> </label> </form></td> <td width="105"><form id="form2" name="form2" method="post" action=""> <label> <input type="checkbox" name="checkbox3" value="checkbox" /> </label> Homme </form></td> <td width="80"><form id="form3" name="form3" method="post" action=""> <label> <input type="checkbox" name="checkbox22" value="checkbox" /> </label> Femme </form></td> <td><form id="form4" name="form4" method="post" action=""> <label> <select name="select4"> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>23</option> <option>24</option> <option>25</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> <option>32</option> <option>33</option> <option>34</option> <option>35</option> <option>36</option> <option>37</option> <option>38</option> <option>39</option> <option>40</option> <option>41</option> <option>42</option> <option>43</option> <option>44</option> <option>45</option> <option>46</option> <option>47</option> <option>48</option> <option>49</option> <option>50</option> <option>51</option> <option>52</option> <option>53</option> <option>54</option> <option>55</option> <option>56</option> <option>57</option> <option>58</option> <option>59</option> <option>60</option> </select> </label> - <label> <select name="select4"> <option>60</option> <option>59</option> <option>58</option> <option>57</option> <option>56</option> <option>55</option> <option>54</option> <option>53</option> <option>52</option> <option>51</option> <option>50</option> <option>49</option> <option>48</option> <option>47</option> <option>46</option> <option>45</option> <option>44</option> <option>43</option> <option>42</option> <option>41</option> <option>40</option> <option>39</option> <option>38</option> <option>37</option> <option>36</option> <option>35</option> <option>34</option> <option>33</option> <option>32</option> <option>31</option> <option>30</option> <option>29</option> <option>28</option> <option>27</option> <option>26</option> <option>25</option> <option>24</option> <option>23</option> <option>22</option> <option>21</option> <option>20</option> <option>19</option> <option>18</option> </select> </label> </form></td> <td> </td> <td> </td> </tr> </table> <p> </p></td> </tr> </table> <p> </p> <p> </p> <table width="1013" height="27" border="0"> <tr> <td width="173"> </td> <td width="61"><span class="Style8">Tous</span></td> <td width="138"><span class="Style8">Personne connectée </span></td> <td width="381"> </td> <td width="116"> </td> <td width="118"> </td> </tr> </table> <table width="233" border="0" align="center" cellspacing="2"> <tr bgcolor="blue"> <th width="102" scope="row"> </th> <td width="36"><div align="center" class="Style4"></div></td> <td width="81"><div align="center" class="Style4"></div></td> </tr> <?php while ($liste_etu=mysql_fetch_assoc($req)) { $j=$i%2; ?> <tr bgcolor="#FFFFFF"> <td><?php echo $liste_etu['login'] ?></td> <td><center><?php echo $liste_etu['age'] ?></center></td> <td width="81"><?php echo $liste_etu['ville'] ?></td> </tr> <?php $i++; } ?> </table> </body> </html>
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumAffichage de resultat d'une requete
- ForumRecuperation du resultat d'une requete sql
- ForumMise en page resultat d'une requete
- ForumAfficher le resultat d'une requete
- ForumBash resultat d'une requete
- ForumAffichage du resultat d'une requet
- ForumAffichage du resultat d'une requete
- ForumRecuperer le resultat d'une requete.
- ForumPhp recuperer le resultat d'une requete
- ForumJava affichage resultat d'une requete
- Voir plus