Курсовая работа: Автоматизація процесу обліку
</tr>
</table>
</form>
scripts/afftar.php
<?php include("../header.inc.html"); echo myheader("Автор") ?>
<div align=center>
<?php
require "../db.php";
include "../forms/afftar.html";
$db = new db();
if(isset($_GET['add'])) {
$fn = $_GET['fname'];
$ln = $_GET['lname'];
$sn = $_GET['sname'];
$a = $_GET['address'];
$db->query("INSERT INTO dev(first_name, last_name, surname, addr)
VALUES ('$fn','$ln','$sn','$a') ");
} elseif(isset($_GET['del'])) {
foreach($_GET['delarr'] as $arr){
$db->query("DELETE FROM dev
WHERE id = $arr ");
}
}
?>
<div class=h2>Зареєстровані автори</div>
<form action=<?php print $PHP_SELF; ?> >
<table style="border: 1px solid black; " cellpadding=3 cellspacing=1 class=text>
<tr bgcolor="#c0c0c0">
<td> </td>