Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- include 'index_proses.php';
- include 'uji_fungsi_rise.php';
- echo "<h3> Proses Stemming Pada 50 Data RISE: </h3>";
- echo " <form method='POST'>
- <input type=\"submit\" value='Stem Data RISE!!!' name=\"stem_database\" />
- </form>";
- if(isset($_POST['stem_database'])){
- $limit = (isset($_GET['limit']) AND $_GET['limit'] != '') ? intval($_GET['limit']) : '50';
- $ambil_database_tb_content = mysql_query("SELECT content FROM tb_content ORDER BY id limit 0,$limit");
- while ($stemming = mysql_fetch_array($ambil_database_tb_content)){
- $ar[]=$stemming;
- }
- echo "<br>total=".count($ar);
- foreach($ar as $a){
- $string = "$a[content]";
- stemming_rise($string);
- }
- echo "end";
- }
Advertisement
Add Comment
Please, Sign In to add comment