Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet_nf17_p19_tdg1_groupe2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
3fd678a6
Commit
3fd678a6
authored
Jun 20, 2019
by
Oswaldo Aldair Alanis Mayorga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
a0bc7407
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
application/voirClients.php
application/voirClients.php
+56
-0
No files found.
application/voirClients.php
0 → 100644
View file @
3fd678a6
<html>
<head>
<title>
Voir à tous les clients
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
</head>
<body>
<button
onclick=
"location.href='ajouterClient.html'"
>
Add
</button>
<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
include
(
"connexion.php"
);
try
{
$vConn
=
new
PDO
(
"pgsql:host=
$vHost
;port=
$vPort
;dbname=
$vData
"
,
$vUser
,
$vPass
);
}
catch
(
PDOException
$e
)
{
echo
"Erreur de la connexion '
$e
'"
;
}
$vSql
=
'SELECT * FROM client;'
;
try
{
$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>'
;
}
}
catch
(
PDOException
$e
)
{
echo
"Erreur de requete '
$e
'"
;
}
?>
</table>
</body>
</html>
Write
Preview
Markdown
is supported
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