Курсовая работа: Автоматизація процесу обліку
</table>
</form>
scripts/pz.php
<?php include("../header.inc.html"); echo myheader("ПЗ") ?>
<?php
require ("../db.php");
$db = new db();
?>
<div align="center">
<?php
include "../forms/pz.html";
if(isset($_GET['add'])) {
$n = $_GET['name'];
$v = $_GET['version'];
$d = $_GET['date'];
$l = $_GET['licence'];
$n_d=$_GET['distr'];
$n_a=$_GET['author'];
$a = $_GET['address'];
$db->query("INSERT INTO pz(name, version, dev_id, distr_id, date, licence, addr)
VALUES ('$n','$v', '$n_a', '$n_d', DATE '$d', '$l', '$a') ");
} elseif(isset($_GET['del'])) {
foreach($_GET['delarr'] as $arr){
$tmp = explode (":",$a