Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. if(isset($_GET['id'])){
  3. $id=$_GET['id'];
  4. }
  5.  
  6. $servername = "localhost";
  7. $username = ".............";
  8. $password = "............";
  9. $dbname = ".............";
  10.  
  11. // Create connection
  12. $conn = new mysqli($servername, $username, $password, $dbname);
  13.  
  14. // Check connection
  15. if ($conn->connect_error) {die("Connection failed: " . $conn->connect_error);}
  16. $sql = "SELECT id,id_msg,content,topic FROM smf_cymiz WHERE id='$id'";
  17. $result = $conn->query($sql);
  18.  
  19. if ($result->num_rows > 0) {
  20. while($row = $result->fetch_assoc()) {
  21. ..
  22. ..
  23. }
  24.  
  25. $conn->close();
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement