Results 1 to 4 of 4

Thread: How to Include Testimonials?
      
   

  1. #1
    Nica423's Avatar
    Nica423 is offline Sergeant
    Join Date
    Nov 2007
    Posts
    37

    Question How to Include Testimonials?

    I would like to add a page to my site where visitors can leave (post) a comment or testimonial. What script can I usefrom the Fantastico suite?

    Joomla looks like much more than I need. Plus I'm not sure where to install it.
    Need some help!

    Thanks

  2. #2
    Antonio878's Avatar
    Antonio878 is offline Master Sergeant
    Join Date
    Sep 2007
    Posts
    68

    Default Re: How to Include Testimonials?

    you can easily create a testimonial page, using php and phpmyadmin, all you need to do is create two text boxes, one called name and the other one called comment, and obviously you need to create a button and make sure there in the form area you have created. Once then you should create another page but it has to be a php page, this is the page where you will have the comments posted into the database.

    PHP Code:
    <?php
    $con 
    mysql_connect("localhost","username","password");
    if (!
    $con)
      {
      die(
    'Could not connect: ' mysql_error());
      }

    mysql_select_db("username_testimonials"$con);

    mysql_query("INSERT INTO testimonial (Name, Comment) 
    VALUES ('
    $name', '$comment')");

    mysql_close($con);
    ?>
    Remember to replace the username and password with your username and password, anything that has username replace it with your username!
    this above is what you put on the php page.

    After this you will have to create a database so go to MySQL Databases in your cpanel and then create one called testimonials. Now once then go back to cpanel main menu and go to phpmyadmin go and click on testimonials on the left side then click SQL then add the table called testimonial then add the columns Name and Comment, and then for Name pick varchar then after type 100 then for comment pick Text and then press Save, then you are done, make sure you published the pages, and in the form you created earlier double click on the form and make sure the action is set to where you published your php page, once then your done.

    Now to show the comments people made you just add this to the php page or under the form, but make sure the form page is a php page.

    PHP Code:
    <?php
    $con 
    mysql_connect("localhost","username","password");
    if (!
    $con)
      {
      die(
    'Could not connect: ' mysql_error());
      }

    mysql_select_db("username_testimonials"$con);

    $result mysql_query("SELECT * FROM testimonial");

    while(
    $row mysql_fetch_array($result))
      {
      echo 
    $row['Name'] . ":<br> " $row['Comment'];
      echo 
    "<br />";
      }

    mysql_close($con);
    ?>
    Remember to replace username and password, now your done
    Check out:
    Great Windmill (A Place Where You Can Have Fun!)

    You can do so much on the website, check it out!

  3. #3
    Nica423's Avatar
    Nica423 is offline Sergeant
    Join Date
    Nov 2007
    Posts
    37

    Default Re: How to Include Testimonials?

    Thank you so much for the very detailed response. It was most helpful.I will give it a try.

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,077

    Default Re: How to Include Testimonials?

    Or, use BV's built in guestbook.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49