bonjour, comment puis je lié une page php a mon css voici mon code php:
et mon code css
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
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 <html> <head><title>tableau dynamique </title></head> <body> <center><h1>Abonnements</h1></center> <div class= "border_table"> <center> <?php $machine="localhost"; $utilisateur="root"; $mot_passe=""; $nom_base="smartphone"; $con= @mysql_connect($machine,$utilisateur,$mot_passe) or die ('Erreur : '.mysql_error() ); mysql_select_db($nom_base); $query='SELECT * FROM smartphone.abonnements;'; $resultat=mysql_query($query,$con) or die (mysql_error());; $total=mysql_num_rows($resultat); if($total) { echo'<table bgcolor="#FFFFFF">'."\n"; echo '<table border="1">'."\n"; echo "<tr>"; echo '<th>Operateur<th>'; echo '<th>SIM<th>'; echo '<th>PUK<th>'; echo '<th>Num ligne<th>'; echo '<th>Volume<th>'; echo '<th>Statut abo<th>'; echo "</tr>"; while($row = mysql_fetch_assoc($resultat)) { echo '<td>'.$row["Operateur"].'<td>'; echo '<td>'.$row["Num SIM"].'<td>'; echo '<td>'.$row["PUK"].'<td>'; echo '<td>'.$row["Num ligne"].'<td>'; echo '<td>'.$row["Volume"].'<td>'; echo '<td>'.$row["Statut abo"].'<td>'; echo '</tr>'."\n"; } echo '</table>'."\n"; } else echo 'Pas d\'enregistrements dans cette table...'; ?></center></div> </body> </html>
es ce que ma liaison est bonne?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 .border_table{ position: absolute; top: 20px; left: 400px; height: 100px; width: 200px; }
cordialement,
Partager