Guest User

Untitled

a guest
Apr 30th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. //import the database connection file
  5. include("connect.php");
  6. //select the row from the "tutorialinfo" table with an id of the value of ?id=, and put them into variables
  7. $query = mysql_query("SELECT * FROM 'tutorialinfo' WHERE tutorial_id = '". $_GET['id']." '");
  8. while($row = mysql_fetch_array($query)) {
  9. $tutorial_title == $row['tutorial_title'];
  10. $tutorial_info == $row['tutorial_info'];
  11. $tutorial_date == $row['tutorial_date'];
  12. $tutorial_time == $row['tutorial_time'];
  13. $tutorial_type == $row['tutorial_type'];
  14. }
  15. mysql_close($dbconnection);
  16.  
  17. ?>
  18. <!DOCTYPE HTML>
  19. <html>
  20. <head>
  21. <title>Something</title>
  22. </head>
  23. <body>
  24. <?PHP echo $tutorial_title ?>
  25. // tried echo "$tutorial_title";, '$tutorial_title'; etc. none of them work
  26. </body>
  27. </html>
Add Comment
Please, Sign In to add comment