PHP Classes

File: complex-example/view/insertRow.php

Recommend this page to a friend!
  Classes of none  >  Raw AJAX Wrapper  >  complex-example/view/insertRow.php  >  Download  
File: complex-example/view/insertRow.php
Role: Example script
Content type: text/plain
Description: Insert table row
Class: Raw AJAX Wrapper
Generate JavaScript to send AJAX requests
Author: By
Last change:
Date: 7 years ago
Size: 324 bytes
 

Contents

Class file image Download
<?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';
}

For more information send a message to info at phpclasses dot org.