alifcintaibu

limit_tdk_jalan

Jun 17th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2. include 'koneksi.php';
  3. include 'index_proses.php';
  4. include 'uji_fungsi_rise.php';
  5. echo "<h3> Proses Stemming Pada 50 Data RISE: </h3>";
  6. echo "  <form method='POST'>
  7.          <input type=\"submit\" value='Stem Data RISE!!!' name=\"stem_database\" />
  8.         </form>";
  9. if(isset($_POST['stem_database'])){
  10.     $limit = (isset($_GET['limit']) AND $_GET['limit'] != '') ? intval($_GET['limit']) : '50';
  11.     $ambil_database_tb_content = mysql_query("SELECT content FROM tb_content ORDER BY id limit 0,$limit");
  12.     while ($stemming = mysql_fetch_array($ambil_database_tb_content)){
  13.          $ar[]=$stemming;
  14.     }
  15. echo "<br>total=".count($ar);
  16.     foreach($ar as $a){
  17.     $string = "$a[content]";      
  18.         stemming_rise($string);
  19.     }
  20. echo "end";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment