-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathajoutvar.php
More file actions
39 lines (39 loc) · 1.08 KB
/
Copy pathajoutvar.php
File metadata and controls
39 lines (39 loc) · 1.08 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
38
39
<html>
<body>
<div class="grid_4" >
<div class="box" >
<h2><a href="#">Une nouvelle variété est arrivée</a></h2>
<br>
<p><b><font color="#FF0000" >Les valeurs suivantes ont été ajoutées à la table des Variétés</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>Sorte</th>
<th>Graine/gr</th>
<th>Couleur</th>
<th>Un petit poème</th></tr>
<td><?php echo $_POST["nrvarnew"];?></td>
<td><?php echo $_POST["nom"];?></td>
<td><?php echo $_POST["sorteg"];?></td>
<td><?php echo $_POST["graine_gr"];?></td>
<td><?php echo $_POST["couleur"];?></td>
<td><?php echo $_POST["coment"];?></td>
</tr>
</tbody>
</table>
</p>
<?php
include('bastide.php');
$nrvarnew = $_POST["nrvarnew"];
$nom = $_POST["nom"];
$sorteg = $_POST["sorteg"];
$graine_gr = $_POST["graine_gr"];
$couleur = $_POST["couleur"];
$coment = $_POST["coment"];
pg_query ($dbconn, "INSERT INTO varietes VALUES ('$nrvarnew', '$nom', '$sorteg', '$graine_gr', '$couleur', '$coment')");
?>
</div>
</body>
</html>