1 pièce(s) jointe(s)
probleme d'affichage d'une table avec php
Bonjour,
J'ai un petit probleme d'affichage Voila ce que j'ai fait comme programme:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
| <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<head>
<title>Application ciscoworks</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" />
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
<!--
.Style2 {font-size: 16px; }
.Style4 {font-size: 14px}
.Style5 {font-family: Georgia, "Times New Roman", Times, serif}
.Style6 {font-size: 13.5px}
-->
</style>
</head>
<?php
mysql_connect('localhost', 'root','') or die("erreur de connexion au serveur");
mysql_select_db('application') or die("erreur de connexion à la base de données");
//if(isset($_POST['liste']))
//{
$v=$_POST['liste'];
//}
$sql = " SELECT * FROM armoire where Armoir='$v' ";
$result = mysql_query($sql) or die("Requete pas comprise");
echo "<table border=4>";
echo "<tr bgcolor=#0080c0 ><td>Type</td><td>Port</td><td>IP</td><td>Zone</td><td>couverture</td><td>somme</td></tr>";
while ($row=mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>",$row[1],"</td><td>",$row[2],"</td><td>",$row[4],"</td><td>",$row[5],"</td><td>",$row[6],"</td>";
echo "</tr>";
}
?>
<body>
<div id="container">
<div id="header"><img src="logo[1].gif" alt="" width="86" height="65" /></div>
<div class="Style4" id="nav">
<a href="index.html">Acueil</a>
<a href="page2">UTILISATEUR</a>
<a href="1.php">ARMOIRE</a>
<a href="page4.php" class="Style5">SWITCHS</a>
<a href="#" class="Style6">Ajout Materiel </a> </div>
<div id="content">
<h2 class="Style2">Welcome</h2>
<p> </p>
</div>
<div id="footer">
<p><small> 2010 STMicroelectronics - Application - All rights reserved</small></p>
</div>
</div>
<label></label>
</body>
</html> |
vous allez trouvez ci joint une imprime ecran ou j'ai montrer ou je voulrais bien afficher mon tableau
ci vous saisi ou reside le probleme n'hesiter pas de me poster vos solution, je vous remercie d'avance
Bonne suite de journée