1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <?php
require("identification/connexion_sql.php");
$db = mysql_connect($host_db,$login_db,$password_db) or die ("impossible de se connecter a la base".mysql_error());
mysql_select_db($name_db,$db) or die ("base inexistante".mysql_error());
$req = mysql_query("SELECT * FROM groupe_article, s_groupe_article WHERE s_groupe_article.numgroupe = groupe_article.numgroupe ORDER BY groupe_article.numgroupe ASC") or die ("impossible d'effectuer la requête");
while($shopone = mysql_fetch_array($req)){
$nomdugroupe = stripslashes($shopone['nomgroupe']);
$nomsousgroupe = stripslashes($shopone['nomssgroupe']);
print'<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<th width="14%" scope="col"> </th>
<th width="86%" scope="col"><a href="formation.php"><strong>
<div align="left">'.$nomdugroupe.'</div></strong></a></th>
</tr>
<tr>
<th width="14%" scope="col"> </th>
<th width="86%" scope="col"><div align="left"><a href="maintenance.php" class="textessmenuleft">'.$nomsousgroupe.'</a></div></th>
</tr>
</table>';}
mysql_close();
?> |
Partager