Saya bingung , knp nilai variabel dari $news_id tidak keluar saat ingin menampilkan berita sesuai dengan id-nya.....bagaimana caranya agar file show_news.php dapat mengambil nilai $news_id melalui file news.php ? atau dimana letak kesalahannya ? terima kasih
news.php <? //Copyright (c) Carolus Agung 2004 ; This code just for SMU Fons Vitae I - OpeNuxIndo.org Core $conn=mysql_connect("localhost","root",""); if ($conn) { mysql_select_db("fv_database"); if (empty($awal)) $awal=0; $query=mysql_db_query("fv_database","select * from fv1_news order by news_id desc limit $awal,5"); $row=mysql_fetch_row($query); if(!$row) die ("error"); do { list($id,$tanggal,$judul,$headline,$isi,$penulis)=$row; print("<B><a href='show_news.php?news_id=$id'>$tanggal : $judul</a></B><br>"); print("$headline\n<br>"); } while ($row=mysql_fetch_row($query)); $query2=mysql_db_query("fv_database","select * from fv1_news"); $jumlah=mysql_num_rows($query2); $i=$jumlah/5; $i=ceil($i); print ("Halaman : "); for ($j=1;$j<=$i;$j++) { $awal=(($j-1)*4+$j)-1; print ("[<a href='news.php?awal=$awal&page=$j'>$j] \n");} } else { echo "Gagal Menampilkan Berita"; } ?> ------------------------------------------------------------------------------- show_news.php <? //Copyright (c) Carolus Agung 2004 ; This code just for SMU Fons Vitae I - OpeNuxIndo.org Core $conn=mysql_connect("localhost","root",""); if ($conn) { mysql_select_db("fv_database"); $query=mysql_db_query("fv_database","select * from fv1_news where news_id='$news_id'"); $row=mysql_fetch_row($query); if(!$row) die("Error"); do { list($id,$tanggal,$judul,$headline,$isi,$penulis)=$row; print("<table width=50% border=0 cellpadding=0 cellspacing=0><tr><td>"); print("<b>$tanggal<br>$judul<br></b>oleh $penulis<br>$isi\n<br>"); print("</td></tr></table><br>");} while ($row=mysql_fetch_row($query)); } else { echo "News gagal ditampilkan"; } ?> -- Unsubscribe: kirim email kosong ke [EMAIL PROTECTED] Arsip, FAQ, dan info milis di http://linux.or.id/milis.php Tidak bisa posting? Baca: http://linux.or.id/wiki/index.php?pagename=ProblemMilisDanSolusi http://linux.or.id/wiki/index.php?pagename=TataTertibMilis