Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet_nf17_p19_tdg1_groupe2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
fee25f07
Commit
fee25f07
authored
Jun 19, 2019
by
Osvaldo Valdivia Salas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete remAnimal.php
parent
40f9781f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
application/remAnimal.php
application/remAnimal.php
+0
-30
No files found.
application/remAnimal.php
deleted
100644 → 0
View file @
40f9781f
<html>
<head>
<title>
Exercice
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
</head>
<body>
<?php
$vHost
=
'tuxa.sme.utc'
;
$vPort
=
'5432'
;
$vData
=
'dbbdd0p117'
;
$vUser
=
'bdd0p117'
;
$vPass
=
'LpIHl1sZ'
;
$vConn
=
new
PDO
(
"pgsql:host=
$vHost
;port=
$vPort
;dbname=
$vData
"
,
$vUser
,
$vPass
);
$idAnimal
=
$_POST
[
'idAnimal'
];
//TODO Valider que l'id reçu existe
if
(
$idAnimal
!=
""
){
$vSql
=
"DELETE FROM ANIMAL WHERE idAnimal='
$idAnimal
';"
;
$vSt
=
$vConn
->
prepare
(
$vSql
);
$vSt
->
execute
();
header
(
'Location: http://tuxa.sme.utc/~bdd0p117/animal.php'
);
}
else
echo
"Il manque une donnée"
;
?>
</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