phpDocumentor VFront
Administration
[ class tree: VFront ] [ index: VFront ] [ all elements ]

Source for file test_query_all.php

Documentation is available at test_query_all.php

  1. <?php 
  2. /**
  3.  * @desc Script richiamato in modalità AJAX per verificare la correttezza di numerose query SELECT
  4.  * @package VFront
  5.  * @subpackage Administration
  6.  * @author M.Marcello Verona
  7.  * @copyright 2007 M.Marcello Verona
  8.  * @version 0.90
  9.  * @license http://www.gnu.org/licenses/gpl.html GNU Public License
  10.  * @see test_query.php
  11.  */
  12.  
  13.  
  14. require_once("../inc/conn.php");
  15.  
  16.  proteggi(2);
  17.  
  18. if(isset($_POST['sql'])){
  19.     
  20.     $n=count($_POST['sql']);
  21.     $res=0;
  22.     
  23.     for($i=0;$i<$n;$i++){
  24.         $res+=vmsql_try($_POST['sql'][$i],$link,true);
  25.     }
  26.     
  27.      echo ($res==$n && $n>01:0;
  28.         
  29.     
  30. }
  31. else{
  32.     # nessuna chiamata
  33.     echo "-1";
  34.     
  35. }
  36.  
  37. ?>

Documentation generated on Sat, 22 Sep 2007 11:51:34 +0200 by phpDocumentor 1.4.0a2