PHP Classes

File: fwphp/glomodul/z_examples/AJAX_form_valid/ajax/cre_upd_del.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/AJAX_form_valid/ajax/cre_upd_del.php   Download  
File: fwphp/glomodul/z_examples/AJAX_form_valid/ajax/cre_upd_del.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/AJAX_form_valid/ajax/cre_upd_del.php
Date: 1 year ago
Size: 727 bytes


Class file image Download
// J:\awww\www\zbig\04knjige\dynamic_webs_design_nekretn\ch10NEKRETNINE\cre_upd_del.php
$myData = $_POST['data']; //This recieves the data passed from the HTML form
list($userid, $password) = explode('|', $myData);

//Add Guestbook Information to File
$statement = "INSERT INTO users (user_id, user_pass, user_name) VALUES(99, '99','99')";
//"DELETE FROM `users` WHERE `users`.`user_id` = 99"?
/*$statement = "INSERT INTO users ";
$statement .= "(user_id, user_pass) ";
$statement .= "VALUES (";
$statement .= "'".$userid."', '".$password."')";*/

$rtn = insDelUpd($statement);
"Insert Result Code: $rtn";