PHP Classes

File: complex-example/view/deleteRow.php

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

Contents

Class file image Download
<?php
require_once dirname(__FILE__).'/../view/include/define.inc.php';
require_once
ROOT.'/view/include/header.inc.php';

$a = new PHPClassManageRowData();

$a->setJsInpuArr($_GET['id']);
   
if(
$a->ajaxBackendOperation('delete')){
   
$b = new PHPClassFormAddressBook();
    if(isset(
$_GET['row_key']) && isset($_GET['row_val'])){
       
$b->drawAddressBookRows("Addresses", $_GET['row_key'],$_GET['row_val']);
    } else {
       
$b->drawAddressBookRows("Addresses");
    }
} else {
    echo
'ERROR: DB query failed';
}
?>

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