Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- //import the database connection file
- include("connect.php");
- //select the row from the "tutorialinfo" table with an id of the value of ?id=, and put them into variables
- $query = mysql_query("SELECT * FROM 'tutorialinfo' WHERE tutorial_id = '". $_GET['id']." '");
- while($row = mysql_fetch_array($query)) {
- $tutorial_title == $row['tutorial_title'];
- $tutorial_info == $row['tutorial_info'];
- $tutorial_date == $row['tutorial_date'];
- $tutorial_time == $row['tutorial_time'];
- $tutorial_type == $row['tutorial_type'];
- }
- mysql_close($dbconnection);
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>Something</title>
- </head>
- <body>
- <?PHP echo $tutorial_title ?>
- // tried echo "$tutorial_title";, '$tutorial_title'; etc. none of them work
- </body>
- </html>
Add Comment
Please, Sign In to add comment