-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathajoutsort.php
More file actions
37 lines (36 loc) · 1.01 KB
/
Copy pathajoutsort.php
File metadata and controls
37 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<body>
<div class="grid_4" >
<div class="box" >
<h2><a href="#" >Une nouvelle sorte est arrivée</a></h2>
<p><b><font color="#FF0000" >Les valeurs suivantes ont été ajoutées à la table des Sortes</font></b>
<div style="margin: 0px; overflow: hidden; position: static;">
<div style="margin: 0px;" class="block" id="tables">
<table>
<tbody><tr><th>Numéro de sortes</th>
<th>Nom</th>
<th>Catégorie</th>
<th>Famille</th>
<th>Un petit poème</th></tr>
<tr><td><?php echo $_POST["nrsortnew"];?></td>
<td><?php echo $_POST["nom"];?></td>
<td><?php echo $_POST["nr_cat"];?></td>
<td><?php echo $_POST["nr_fam"];?></td>
<td><?php echo $_POST["coment"];?></td></tr>
</tbody>
</table>
</p>
<?php
include('bastide.php');
$nrsortnew = $_POST["nrsortnew"];
$nom = $_POST["nom"];
$nr_cat= $_POST["nr_cat"];
$nr_fam = $_POST["nr_fam"];
$coment = $_POST["coment"];
pg_query ($dbconn, "INSERT INTO sortes
VALUES (
'$nrsortnew', '$nom', '$nr_cat', '$nr_fam', '$coment')");
?>
</div>
</body>
</html>