<?php
require_once dirname(__FILE__).'/include/define.inc.php';
require_once ROOT.'/view/include/header.inc.php';
$var = array();
foreach ($_POST as $post){
$var[] .= $post;
}
$a = new PHPClassManageRowData();
if($a->insertRow($var)){
header('Location:address-book.php',302);
} else {
echo 'ERROR: DB query failed';
}
|