alifcintaibu

error_fetch_array

May 5th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. include 'index.php';
  3. require 'koneksi.php';
  4. $berita = mysql_query("SELECT id,url,content FROM 'tb_content' where OREDER BY RAND () LIMIT 5");
  5. while ($tampil_berita = mysql_fetch_array($berita)){
  6. echo "<b>ID:</b><br>$tampil_berita [id] <b> url : <br>$tampil_berita [url] <br>";
  7. echo "$tampil_berita[content]<br>";
  8. }
  9.  
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment