Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. $con = mysql_connect("localhost","kiwieve1_1233","123qwe");
  3. if (!$con)
  4. {
  5. die('Could not connect: ' . mysql_error());
  6. }
  7.  
  8. mysql_select_db("kiwieve1_123", $con);
  9.  
  10. $result = mysql_query("SELECT * FROM Table1");
  11.  
  12. while($row = mysql_fetch_array($result))
  13. {
  14. echo $row['News'];
  15. echo "<br />";
  16. }
  17.  
  18. mysql_close($con);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement