PHP and MySQL Forum Tutorial – 1. Setting Up Data Structure (Part 1)




In this video, we will set up database and tables necessary to build the forum (Part 1) Source code: – github repository …

Original source


12 responses to “PHP and MySQL Forum Tutorial – 1. Setting Up Data Structure (Part 1)”

  1. there are changes in database with the one that you created in the video. username should be changed to user_name. And, in the content_function.php in distopics, it should be like this function disptopics($cid, $scid) {
    include ('dbconn.php');
    $select = mysqli_query($con, "SELECT topic_id, author, title, date_posted, views, content FROM categories, subcategories, topics
    WHERE ($cid = topics.category_id) AND ($scid = topics.subcategory_id) AND ($cid = categories.cat_id)
    AND ($scid = subcategories.subcat_id) ORDER BY topic_id DESC");

Leave a Reply