Login   Register  
PHP Classes
elePHPant
Icontem

File: process.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roland Burda  >  PQuery  >  process.php  >  Download  
File: process.php
Role: Example script
Content type: text/plain
Description: Example script - process request
Class: PQuery
Generate Javascript to send jQuery AJAX requests
Author: By
Last change:
Date: 4 years ago
Size: 448 bytes
 

Contents

Class file image Download
<?php
header
('Content-type: text/html; charset=iso-8859-2');

// DB connect
$conn mysql_connect("localhost","root","rhqq2x");
        
mysql_select_db("tabla");
        
if(isset(
$_REQUEST['delete']) && $_REQUEST['delete'] == true){
    
$id $_REQUEST['id'];
    
    
// ezt a részt kivettem, így is azt csinálja amit kell
    //$siker = mysql_query("DELETE FROM adatok WHERE mediatorid = '$id'");
    
$siker true;
    
    if(
$siker) echo "Item removed!";
}
?>