How to Create PHP Comment box using MySQL Database – Part 1

Php

Video is ready, Click Here to View ×


— HelperTuts
Hello, In this Tutorial we are going to create a wonderful comment box… In this first part of the tutorial we are going to make the database in MySQL database, with PHPmyAdmin, and also going to create basic form… with help of tables, and form tags, HTML… Also going to create a connect page which is going to connect to out database, and also create the send comment part of this tutorial/comment box. Thank You for watching, Hope you Subscribe Rate and Comment…

Click…

38 thoughts on “How to Create PHP Comment box using MySQL Database – Part 1

  1. all works apart from it doesnt update myphp. I had the undefined index problem also which was was solved with Sithembiso's comment. Any idea why it wont work? I added the table to the database I already was using and used the correct connect file for that.

  2. got this error how to resolve it
    Warning: require(contact.php): failed to open stream: No such file or directory in C:xampphtdocsprojexamplecomment.php on line 3

    Fatal error: require(): Failed opening required 'contact.php' (include_path='C:xamppphpPEAR') in C:xampphtdocsprojexamplecomment.php on line 3

  3. hello. I am very interested with this tutorial but. i cant go forward because of this.

    Notice: Undefined index: name in C:xampphtdocspp1ide2index.php on line 4

    Notice: Undefined index: title in C:xampphtdocspp1ide2index.php on line 5

    Notice: Undefined index: comment in C:xampphtdocspp1ide2index.php on line 6

    Notice: Undefined index: submit in C:xampphtdocspp1ide2index.php on line 7

    pls.. help

  4. After all this frustration of the "Undefined index" error and the source code not working, I finally solved the issue… What you have to do is write the require statement
    And then
    If(isset($_POST['submit'])))
    {
    $name=$_POST['name'];
    $comment=$_POST['comment'];

    If(name&&comment)
    {
    The insert statement as in the tutorial
    }
    }

  5. sir can i ask i tried to place this on my design but its eating up the space escpecially with the blue divider is there a way it can be sized? and when i checked the localhost it moved everything out of the way please help

  6. Dude this is awsome, another great thing you could add to this would be when somebody adds a new comment, an email gets sent straight to you, so you know that somebody has commented 🙂 just a suggestion but its still great and works awsomely and for people having my_sql errors try adding this to connect.php –> $connect=mysql_connect("YOUR HOST","YOUR USERNAME","YOUR PASSWORD")
    This may fix your problems 🙂 enjoy

  7. Mine says Notice: Undefined index: name in C:UsersHarryDesktopxampphtdocscomment.php on line 3

    Notice: Undefined index: comment in C:UsersHarryDesktopxampphtdocscomment.php on line 4

    Notice: Undefined index: submit in C:UsersHarryDesktopxampphtdocscomment.php on line 5
    Please help? I've used the one from your site.

Leave a Reply

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