Commit 2143256d authored by Osvaldo Valdivia Salas's avatar Osvaldo Valdivia Salas
Browse files

Upload New File

parent 155b060d
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
$vHost = 'tuxa.sme.utc';
$vPort = '5432';
$vData = 'dbbdd0p117';
$vUser = 'bdd0p117';
$vPass = 'LpIHl1sZ';
$vConn = new PDO("pgsql:host=$vHost;port=$vPort;dbname=$vData", $vUser, $vPass);
$nom = $_POST['nom'];
$poids = $_POST['poids'];
$taille = $_POST['taille'];
$ddn = $_POST['ddn'];
$client = $_POST['client'];
$espece = $_POST['espece'];
if($nom != ""){
if($poids != ""){
if($taille != ""){
if($client != ""){
if($espece != ""){
$vSql ="INSERT INTO ANIMAL (nom,poids,taille,naissance,idClient,especeNom) VALUES ('$nom','$poids','$taille','$ddn','$client','$espece');";
$vSt = $vConn->prepare($vSql);
header('Location: http://tuxa.sme.utc/~bdd0p117/animal.php');
echo "Il faut donner une espece";
echo "Il faut donner un client";
echo "Il faut donner une taille";
echo "Il faut donner un poids";
echo "Il faut donner un nom";
Supports Markdown
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