[wpkg_web] / unattend_sub.php Repository:
ViewVC logotype

View of /unattend_sub.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Sun Dec 17 04:49:21 2006 UTC (11 years, 9 months ago)
File size: 888 byte(s)
0.7 Initial Import

<?php
  
include "connect.php";
  include 
"header.php";

  if(isset(
$_GET['add'])) {
    
$sql=sprintf("insert into unattended values ( %s, %s, %s)"quote_smart($_GET['lookup']), quote_smart($_GET['property']), quote_smart($_GET['value']));
    
mysql_query($sql) or error_report($sql,mysql_error());
  } else if (isset(
$_GET['update'])) {
    
$sql=sprintf("update unattended set Value=%s where Lookup=%s and Property=%s"quote_smart($_GET['value']), quote_smart($_GET['lookup']), quote_smart($_GET['property']));
    
mysql_query($sql) or error_report($sql,mysql_error());
  } else if (isset(
$_GET['del'])) {
    
$sql=sprintf("delete from unattended where Lookup=%s and Property=%s limit 1"quote_smart($_GET['lookup']), quote_smart($_GET['property']));
    
mysql_query($sql) or error_report($sql,mysql_error());
  }
  print 
"<META HTTP-EQUIV=Refresh content='0; URL=unattend_list.php'>";

ViewVC Help
Powered by ViewVC 1.0.3