<?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->updateRow($var)){
header('Location:address-book.php?row_key='.$_GET['row_key'].'&row_val='.$_GET['row_val'],302);
} else {
echo 'ERROR: DB query failed';
}
|