Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
59071fb1
Commit
59071fb1
authored
Jun 20, 2019
by
Oswaldo Aldair Alanis Mayorga
Browse files
Delete voirClients.php
parent
3d15d997
Changes
1
Hide whitespace changes
Inline
Side-by-side
application/voirClients.php
deleted
100644 → 0
View file @
3d15d997
<html>
<head>
<title>
Voir à tous les clients
</title>
</head>
<body>
<button
onclick=
"location.href='ajouterClient.html'"
>
Add
</button>
<table
border =
"1"
>
<tr>
<th>
nom
</th>
<th>
prenom
</th>
<th>
ddn
</th>
<th>
adresse
</th>
<th>
numero
</th>
</tr>
<?php
$vHost
=
'tuxa.sme.utc'
;
$vPort
=
'5432'
;
$vData
=
'dbbdd0p020'
;
$vUser
=
'bdd0p020'
;
$vPass
=
'uLd6pAgM'
;
$vConn
=
new
PDO
(
"pgsql:host=
$vHost
;port=
$vPort
;dbname=
$vData
"
,
$vUser
,
$vPass
);
$vSql
=
'SELECT * FROM client'
;
$vSt
=
$vConn
->
prepare
(
$vSql
);
$vSt
->
execute
();
while
(
$vResult
=
$vSt
->
fetch
(
PDO
::
FETCH_ASSOC
))
{
echo
'<tr>'
;
echo
"<td>
$vResult[nom]
</td>"
;
echo
"<td>
$vResult[prenom]
</td>"
;
echo
"<td>
$vResult[ddn]
</td>"
;
echo
"<td>
$vResult[adresse]
</td>"
;
echo
"<td>
$vResult[numero]
</td>"
;
echo
'</tr>'
;
}
?>
</table>
</body>
</html>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment