Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

How to delete record in list_data.php file
  • thangvn March 2011

    I want to delete some of record before download to my computer.how do this ?

    Thanks very much.

  • Support March 2011

    Thanks to you!

    If you want to delete all records simply restore the files found in the DB folder from your .ZIP

    If you want to delete only certain records, you must do this using PHP and interact with Gladius DB because the data visualization tool for now does not allow this operation (this is a planned feature):

    Create a .php file in the same folder where your htmlform.html file is located, and execute it from your browser:

    <?php

    include '../resources/db/gladius.php';
    $ini_array = parse_ini_file("form_config.ini",true);
    $G = new Gladius();
    $G->SetDBRoot(dirname(__FILE__).'/db/');
    $db_name = $ini_array['general']['db_name'];
    $table_name = $ini_array['general']['table_name'];
    $delete_rows = "delete from ".$table_name." where id = ID1 OR id=ID2 OR id=ID3" 
    $rs = $G->Query('USE '.$db_name);
    $rs = $G->Query($delete_rows);  


    ?>

    where ID1, ID2, ID3 .... are the identifiers of the records you want to delete....

  • thangvn March 2011

    thank you very much for helping me.


    wishing all adminsitrators happiness and lucky.


     

  • Support August 2011

    Thanks. We are working in this feature.