Advertisement
Guest User

Untitled

a guest
May 7th, 2012
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2. $conn1 = mysqli_connect('xxx') or die('Error connecting to MySQL server.');
  3. $sql = "SELECT * from text ORDER BY id DESC LIMIT 1";
  4. $result = mysqli_query($conn1, $sql) or die('Error querying database.');
  5. while ($row = mysqli_fetch_array($result)) {
  6. echo '<p>' . $row['words'] . '</p>';
  7. }
  8. mysqli_close($conn1);
  9.  
  10. ?>
  11.  
  12. </div>
  13.  
  14. <?php
  15. if (!isset($_SESSION["user_id"])) {
  16.  
  17.  
  18. }
  19. else {
  20. require_once('form.php');
  21. }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement