Guest User

Untitled

a guest
Dec 31st, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $con = mysql_connect("localhost","USERNAME","SIFRA");
  3. if (!$con)
  4.   {
  5.   die('Could not connect: ' . mysql_error());
  6.   }
  7.  
  8. mysql_select_db("IMEBAZE", $con);
  9.  
  10. $result = mysql_query("SELECT * FROM igre ORDER BY id");
  11.  
  12. while($row = mysql_fetch_array($result))
  13.   {
  14.   echo $row['id'] . " " . $row['ime_igre']." " .$row['link_igre'];
  15.   echo "<br />";
  16.   }
  17.  
  18. mysql_close($con);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment