-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathajoutcat.php
More file actions
29 lines (28 loc) · 876 Bytes
/
Copy pathajoutcat.php
File metadata and controls
29 lines (28 loc) · 876 Bytes
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
<html>
<body>
<div class="grid_4" >
<div class="box" >
<h2><a href="#" >Une nouvelle catégorie est crée</a></h2>
<p><b><font color="#FF0000" >Les valeurs suivantes ont été ajoutées à la table des Catégories</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>Un petit poème</th>
<tr><td><?php echo $_POST["nrcatnew"];?></td>
<td><?php echo $_POST["nom"];?></td>
<td><?php echo $_POST["coment"];?></td>
</tr>
</tbody>
</table>
</p>
</div>
<?php
include('bastide.php');
$nrcatnew = $_POST["nrcatnew"];
$nom = $_POST["nom"];
$coment = $_POST["coment"];
pg_query ($dbconn, "INSERT INTO categories VALUES ('$nrcatnew', '$nom', '$coment')");
?>
</body>
</html>