Commit 3e65068d authored by Oswaldo Aldair Alanis Mayorga's avatar Oswaldo Aldair Alanis Mayorga
Browse files

Replace voirClients.php

parent 4d6b3d32
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<button onclick="location.href='ajouterClient.html'">Add </button> <button onclick="location.href='ajouterClient.html'">Add </button>
<table border = "1"> <table border = "1">
<tr> <tr>
<th> id </th>
<th> nom </th> <th> nom </th>
<th> prenom </th> <th> prenom </th>
<th> ddn </th> <th> ddn </th>
...@@ -17,15 +16,14 @@ ...@@ -17,15 +16,14 @@
$vData = 'dbbdd0p020'; $vData = 'dbbdd0p020';
$vUser = 'bdd0p020'; $vUser = 'bdd0p020';
$vPass = 'uLd6pAgM'; $vPass = 'uLd6pAgM';
$vConn = new PDO("pgsql:host=$vHost;port=$vPort;dbname=$cData", $vUser, $vPass); $vConn = new PDO("pgsql:host=$vHost;port=$vPort;dbname=$vData", $vUser, $vPass);
$vSql ='SELECT * FROM client'; $vSql ='SELECT * FROM client';
$vSt = $vConn->prepare($vSql); $vSt = $vConn->prepare($vSql);
$vSt->execute(); $vSt->execute();
while ($vResult = $vSt->fetch(PDO::FETCH_ASSOC)) while ($vResult = $vSt->fetch(PDO::FETCH_ASSOC))
{ {
echo '<tr>'; echo '<tr>';
echo "<td>$vResult[idClient]</td>";
echo "<td>$vResult[nom]</td>"; echo "<td>$vResult[nom]</td>";
echo "<td>$vResult[prenom]</td>"; echo "<td>$vResult[prenom]</td>";
echo "<td>$vResult[ddn]</td>"; echo "<td>$vResult[ddn]</td>";
...@@ -35,6 +33,6 @@ ...@@ -35,6 +33,6 @@
} }
?> ?>
</table> </table>
</body> </body>
</html> </html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment