<?php
$sql['get_count']="
SELECT FOUND_ROWS() AS total
";

$sql['get_data'] = "
   SELECT
   	  SQL_CALC_FOUND_ROWS
      statusBrgId AS status_id,
      statusBrgNama AS status_nama
   FROM
      status_barang_ref
   WHERE  
      statusBrgNama like '%s'  
   ORDER BY statusBrgNama
   LIMIT %s,%s
";

$sql['get_data_by_id'] = "
   SELECT
      statusBrgId AS status_id,
      statusBrgNama AS status_nama
   FROM
      status_barang_ref
   WHERE
      statusBrgId = '%s'
";

$sql['do_add'] = "
   INSERT INTO 
      status_barang_ref 
      (statusBrgId, statusBrgNama)
   VALUES 
      ('', '%s')
";

$sql['do_delete'] = "
   DELETE FROM 
      status_barang_ref
   WHERE
      statusBrgId = '%s'
";  

$sql['do_update'] = "
   UPDATE 
      status_barang_ref
   SET
      statusBrgNama = '%s'
    WHERE 
      statusBrgId = '%s'
";
?>