Create a PHP Forum Pt 2

[ad_1]
In this video tutorial I’ll start explaining how to create a new user registration system for a message board system. This is also a review of PHP, MySQL, HTML, CSS, and JavaScript.

Code is Here:
Recaptcha Article:


Posted

in

by

Tags:

Comments

31 responses to “Create a PHP Forum Pt 2”

  1. Romy Kim Avatar

    If I'm to make a website with a special feature which I think I should create from scratch, but if forum with no special feature is needed, would it be a better idea to simply use a framework like phpBB, bbpress, etc ? I've been learning many different things (you've been a very very excellent source) and when it comes to a big picture like using frameworks, I have no idea what the right approach would be.

  2. realwizardry Avatar

    Derek your voice keeps me coming back to your tutorials man, the way you start with "well hello internet" and the way it sometimes swoops down and back up again

    You've got a good voice

  3. Perry Janssen Avatar

    Why do you use a input type=hidden to check if the form is submitted, if you can just check if the submit button itself is pressed: if(isset($_POST['submit'])){} ?
    is there any advantages of using the hidden input type?

    very nice videos! ive learnt a lot using your vids πŸ™‚

  4. Apollyon Avatar

    can someone help me it gives me a bunch of errors here is the code:

    <?php
    DEFINE ('DBUSER', 'root');
    DEFINE ('DBPW', '');
    DEFINE ('DBHOST', 'localhost');
    DEFINE ('DBNAME', 'msgbrd');

    if ($dbc = mysql_connect (DBHOST, DBUSER, DBPW))
    {
    if (!mysql_select_db(DBNAME))
    {
    trigger_error("Could not select the database"
    .mysql_error());

    exit();
    }
    } else {
    trigger_error("Could not connect to MySQL");
    exit();
    }

    function escape_data ($data)
    {
    if (function_exists('mysql_real_escape_string'))
    {
    global $dbc;
    $data = mysql_real_escape_string (trim($data), $dbc);
    $data = strip_tags($data);
    } else {
    $data = mysql_real_escape_string(trim($data));
    $data = strip_tags($data);
    }
    return $data;
    }

    ?>
    ——————————————————————————————————————–
    and some people say to change "mysql" to "mysqli" but it gives me these errors;

    "Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:wampwwwforum1configmsgbrd.php on line 9"

    function of that error:

    mysqli_select_db ( )

    and this error :

    " Could not select the database in C:wampwwwforum1configmsgbrd.php on line 12"

    function of that error:

    trigger_error()

  5. John Clark Avatar

    I’m fairly new to PHP and MySQL. I have a WAMP server setup for learning purposes. I’m trying to follow this tutorial on my setup, but I get an error. The mysql_connect function has been deprecated and no longer works. The message says to use PDO or MySQLi instead.

    I did some research and it seems like PDO is the best choice going forward. Can you make a video showing how this forum would work using PDO? Is it just a matter of changing the connection function, or does the majority of the code need to be changed as well?

    Thanks.

  6. Don King Asare Avatar

    Derek please i cant seem find the part 1 of this video

  7. Derek Banas Avatar

    Like a chat application?

  8. segun oyebode Avatar

    Can you do a tutorial on message box between user?

  9. Derek Banas Avatar

    You need to save everything into the web server folder. Does that help?

  10. blazingblizzard1252 Avatar

    How do u get it to open the page to test if it worked

  11. Derek Banas Avatar

    Merci beaucoup πŸ™‚

  12. Derek Banas Avatar

    Thank you very much πŸ™‚ I just would like to improve everything and fix many of my past mistakes to make the information much better. Thanks for the kind words. I appreciate them

  13. Salah Ayman Avatar

    man you shouldn't be sorry ever actually we should thank you about your effort it's only me love every thing organized and it's all about that i follow your playlist and i couldn't found these tutorials in any playlist and i am afraid that there are another tutorials not in any playlist and i won't watch it but i wanna thank you really about your awesome tutorials

  14. Derek Banas Avatar

    Sorry about that. I have to clean some things up. I never expected to make 500 videos. If you search for PHP Forum on my YouTube channel they all come up in order. Sorry about the confusion

  15. Salah Ayman Avatar

    Unfortunately it's not belong to it and i found many of your "Awesome" tutorials not belong to any playlist

  16. Derek Banas Avatar

    PHP which I think I called Web Design and Programming

  17. Salah Ayman Avatar

    which playlist this tutorial belong man πŸ™‚

  18. Derek Banas Avatar

    You're very welcome πŸ™‚ I'm glad you enjoyed it

  19. Rakesh Kumar Avatar

    Good tutorial for beginner of php. Little complicated I felt but by watching two to three times I got ur logic. Thank you Sir for such a nice video tutorial

  20. Derek Banas Avatar

    No problem. I'm sorry the code isn't better organized

  21. Derek Banas Avatar

    First this is just a basic forum and isn't ready to be used online. I'm just showing the basics of what a forum would have. The most common issue is that you must have your password defined as char(40) in the database. You can get all of the code by typing "newthinktank PHP FORUMS" in google. I hope that helps

  22. Derek Banas Avatar

    I'm glad it did πŸ™‚

  23. Kevin Johnson Avatar

    Thank you it helped

  24. Derek Banas Avatar

    Probably the best thing to do is to go to my website. Click on Videos – Web Programming – PHP & MySQL. That lists every video in order, on one page. I'm sorry it is so complicated. I decided to cover so many random advanced topics in this tutorial. I also have a slow version of this tutorial. Go to Web Design – Learn PHP, also on my site. It is considerably slower. I hope that helps

  25. Kevin Johnson Avatar

    Ok, it is not that I am lost or anything, but some of your concepts are hard to follow along with because you move so fast. I am not a pro on all the concepts and coding but I am familiar with them. However is it possible that you could slow down for you previous tutorials that you will be making to cater for slow learners like my self. Also where do I start on your videos because I have browse through trying to find a starting place but still I am directed to something else. Where do I start?

  26. Derek Banas Avatar

    @tamondong1000 Links to the code are in the underbar under the video on YouTube

  27. Derek Banas Avatar

    @Boudabang You're welcome πŸ™‚

  28. Boudabang Avatar

    Thanks Derek for the tutorial, really helps

  29. Derek Banas Avatar

    @bry789123 I may just make a Facebook clone. It won't have an API, but Facebook doesn't really have working API πŸ™‚ They do, but it changes everyday so what's the point. I just checked and bookingfaces isn't taken. Maybe I'll get it and see if I can get sued πŸ™‚ Ahh to smiley faces! Next I'm going to type LOL

  30. Derek Banas Avatar

    @TechreSite When I make a promise I stick to it. Real life has been a bit busy lately

Leave a Reply

Your email address will not be published. Required fields are marked *