How to set-up a database to record info

free web hosting
Free Web Hosting, No Ads > Have your say > General Talk

How to set-up a database to record info

jfb130
If I set-up a feed back section on my pages such as the example below how do I record the results in a database?

** scroll to the bottom of the page.

http://www.libbey.com/libbey/html.nsf/Page...LibbeyGlassSite



I need to record the feedback and don't know how. Please help me.

Reply

Kelcey
Well, it's late, but I can give you a quick overview of it.

As to setting up the database, I haven't gotten acceptance yet, so I couldn't help ya there. I'm assuming you just go in your cpanel->mysql databases-> add database.

Now you have a database... you need a table smile.gif phpMyAdmin can help you there or you could write the code on a php file and execute it online. Once again, I haven't been able to see what the cPanel looks like, but under phpMyAdmin, go under your database and try to add a table. Here, you need to specify how many fields you're going to have.

Let's say you have a database of visitor info. You might want to keep track of visitor's name, ip address, how many times they've been to your site. So you'd need 3 fields.

Anywho, once you figure out how many files you need, you need to name them and specify their types. You'll most likely be using VARCHAR which is essentially a string. So if you make a field VARCHAR with size 30, it can have a string of 30 characters at max. Others are INT for integers (numbers). So, you just name the fields and specify what types you want them to be.

Now your table is setup...

It looks like the user will submit a form. So, when you set up the form, you'll set up possible values for form variables. Once the user clicks on something or types in something and finally submits it, then that info will be sent to another page (php or something), then you'll write SQL code in there that takes the form variables and inserts them into the sql database smile.gif

So yeah, in this page of php code, you'll have to write SQL code in it to insert the data in your table you just created smile.gif I don't remember the code off the top of my head, but there are tons of tutorials. Look up "MySql INSERT." That should help ya.


I hope this helps!

 

 

 


Reply

wildteen88
Well I can supply you a script. Which is my guestbook but I can easily make it into a feed back section for you!

I will include the following:

Name:
Date:
Message:

Which is simple to do.

It is very basic as I am a n00b at php and mysql.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : set, database, record, info

  1. I Formed Myself A Metal Band! ..but I Need Help.
    Need Help With Copyright Info And Stuff (5)
  2. Xisto Has Been Wiki And Other Useful Info
    The Hard work is shown through all this (1)
    I happen to find this by accident but xisto has been wiki styled I check the rest of the sites and
    they are wikied as well. http://www.aboutus.org/Xisto.com Also here is an overview of how well
    OpaQue as done in 2 years astahost has 261,000 links in google 7130 links in yahoo 427 links in
    msn alexa rank is 50812 xisto has 846 links in google 9860 links in yahoo 463 links in msn
    alexa rank is 394528 ipbgaming has 15,500 links in google 1330 links in yahoo 103 links in msn
    alexa rank 3546002 gfxtrap 192 links in google 2340 links in yahoo 464 links ....
  3. Review Site: Webmasters-forum.info
    Please give some reviews for the site template (0)
    Hi, I almost compleated my new forum: WebMasters-Forum.Info Please make some
    reviews about the site's template and color selections. Also rate the site. You can also join
    on this for some freebies... Coming Soon. Now a good news. The site is now providing premium
    templates for free. Check on: http://webmasters-forum.info/forumdisplay.php?fid=46 Double
    posting is frowned upon. Please use the edit button to edit the first posting instead of adding
    posts back to back. That's why it is there. Merged. ....
  4. Careful Of Who You Give Your Passport Info Out To.
    Your Passport info is on the net. (4)
    I was just doing a google search to see if such websites exist and well I found a place where you
    can find out anyone's passport info in the following link: QUOTE
    http://www.scrolllock.nl/passport/ I'm serious you can find out anyone's passport info.
    Even celebrities you just type in a name of a celebrity like Brad Pitt or someone and you put down
    the state they're from and you will get back some very interesting results. Go ahead and click
    the link and see what you can find out. Some people might be worried but somethings are not always
    what t....
  5. What Are You Willing To Give Out?
    How much info? (10)
    I was at another topic about 100webspace and it reminded me of onformation that some webhosting
    sites require, and decided to start this topic. I was going to post it in real life experiences,
    but decided it is not really an experience, more of, what you do. So, here goes. When signing up
    for hosting, the hoster often asks for info like your email and such. Now, I have seen many hosting
    sites ask for various info. Some for just a email, and others for phone numbers. I even saw one
    once that asked for social security! I want to know how much info you are willin....
  6. Finaldesign Moved To Astahost
    just an brief info (1)
    Hello! Just a brief info about Finaldesign (me) and my project at finaldesign.trap17.com. I
    have moved my hosting account from TRAP17 to ASTAHOST. Now I will be no longer active at this forums
    here at trap17. You can still reach me via www.finaldesign.tk or come to astahost forums. Anyway,
    my website has also moved to finaldesign.astahost.com . So give me a visit sometime.... bye
    /cool.gif' border='0' style='vertical-align:middle' alt='cool.gif' /> ....
  7. i need a database backup and restore script please
    (0)
    hi i need a database backup and restore script please if any one can help me please i tested
    alot of scripts but no one worked good so if anyone have a good tested script i will be thankful
    for him :wink:....
  8. Loading values in txt file to database
    (0)
    I have a script that during the install, I am to run a file that is supposed to load zip code data
    into the database. It says it runs correctly at the end but yet the table in the database remains
    empty. Here is the code: PHP Code: CODE <? require('data.php');
    require('functions.php'); sql_connect();
    $file=file("admin/zip.txt"); $i=form_get("i"); $start=$i+1;
    $end=$start+5000; if($end>=count($file)){ $end=count($file);
    } for($i....
  9. My database lost
    (2)
    my username:mechportal url:mechportal.vaio-hosting.com I set up my site but a few days later my
    database has lost.And I can not create a new database.There is an error message : DBI
    connect('mysql:localhost','root',...) failed: Too many connections at
    /usr/local/cpanel/Cpanel/Mysql.pm line 43 ERROR 1040: Too many connections....
  10. big problem from database:(
    (1)
    I have from my DB problem: some odd hazard all my db (2) they disappeared, it looks on this that
    they became removed ale not by me and I at all can not no put now. To explain me someone this
    question maybe it directs to admins. And some chance is maybe in order to to regain it ? /sad.gif'
    border='0' style='vertical-align:middle' alt='sad.gif' /> my webside it bastion.vaio-hosting.com
    and look http://www.bastion.vaio-hosting.com/html/ ....
  11. Database size limit ?
    (3)
    Hello... I was youst wondering if there is a size limit for the databases we create ??? Thanks
    in advance....
  12. Phpnuke Themes Database
    (2)
    I'm looking for a phpnuke themes database... Post here the best site you know! 8)....
  13. How to restore backup database & site after domain chang
    (1)
    I would like to know what are the right procedure to upload/restore backup files and databases when
    domain name changes from sub-domain.anysite.com to mysite.com ? I do not want url redirection in
    this case.. suggest me please.... thanks. note : I don't mind uploading files from ftp client.....
  14. Can anyone tell me what the Database name is?
    (1)
    I am installing a modded version of phpbb and I assume the Database username and Database password
    is my FTP login.. but what do I put for Database name? -edit- sorry for the truoble /sleep.gif'
    border='0' style='vertical-align:middle' alt='sleep.gif' /> '' I figured out I had to create the
    database in the cpanel... I'll jst leave this here in case someone else has this problem and
    couldn't find it like me :shock:....
  15. Info - cPanel Login
    (12)
    cPanel protocol: http port: 2082 Paid hosting: http://www.freenukehosting.com:2082 Free
    hosting: http://www.vaio-hosting.com:2082 or http:// yourdomain :2082
    ------------------------------------------------------------------- Secure cPanel protocol:
    https port: 2083 Paid hosting: https://www.freenukehosting.com:2083 Free hosting:
    https://www.vaio-hosting.com:2083 or https:// yourdomain :2083
    ------------------------------------------------------------------- WHM protocol: http port:
    2086 Paid hosting: http://www.freenukehosting.com:2....
  16. www.bbtri.info
    (0)
    Awesome Beyblade Anime Site with good layout, content, and MEDIA~....
  17. .Info Information
    (0)
    I tryed doing the .info lstnight and when I sent in for my RIN# I got this for a responce A
    response has been made by Karen Hedrick in service request ID 45962. - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - Time........: 1/31/2005 9:16 P.M. Response....: Karen
    Hedrick Our free RIN offer for 25 free .info domains expired at midnight on 12/31/04. If we
    can be of any further assistance to you, please contact us. Karen Hedrick Customer Support #1
    Domain Names International, Inc. in otherwords, you can nolonger get the .info f....
  18. www.alexmorgan.info
    (0)
    The site is still under construction, but still has alot of information. Also, make sure you join
    the forums. I really need forum members; especially if you have an interest in aviation. :wink:....
  19. Penguinperv.info
    (1)
    I've decided to shamelessly plug my site (though, I think I might've plugged it here once already,
    but I can't remember). It doesn't have a lot of content on it at the moment, but I did make a new
    layout for the site just before the server went down! o_o Anyway, here's the link:
    http://penguinperv.info Any criticism is appreciated. ^^....
  20. Importing mySQL database into Nuke
    (1)
    Hi there. Is therea way to import an already made database of my forum? I need to host my
    forum, as I was hosting it from my pc, bu I wouldn't like to loose any entry in the database.
    Thanks....
  21. I got the PM that gave me my hosting info... HELP!
    (3)
    I got the PM that game me my hosting information, but it states: One more step and your account
    will be active. go to the following link and vote for us write your review
    http://www.clickherefree.com/hosting-free/...ils.php?id=1605 does the admin need to check that i
    posted before it's active, because i cant get my FTP (dreamweaver) to upload to the site... says
    something about server time (ERROR) and it wont let me upload any of my pages... HELP!....
  22. Don't PM me...read for more info..
    (3)
    Everyday I got PM's from user saying my account was suspended...then he/she ask me to make
    accounts,etc.... Atcually I don't have access to FNH server right now..So I can't fix that for
    you guys... You can either ask admin or other account creators.. Thank You......
  23. Who Really uses 25 .INFO domains?
    (1)
    lol, i dont have a credit card so I can't get any .info domains... if anyone has a spare one or 2,
    could you please let me know via PM? Only if you are willing to let me use it /smile.gif'
    border='0' style='vertical-align:middle' alt='smile.gif' /> Or if they aren't available anymore,
    please just let me know /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' />
    Thanks....
  24. Siemens S55 Info Site
    (2)
    Thats my site http://s55.fks.pl It's about phone Siemens S55. Not midlet's and games java -
    only articles, informations about that phone. Now it's in Polish language, but I have plans to to
    translate it to English. What do you think about "her"?? /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> ....
  25. about .info domain...
    (8)
    guys i need an .info domain for myself cause i can't offer it for this moment... mczmega.info
    please help me any one that can register me a free .info domain... Thanks....
  26. Concerts, Is there like a database of all upcoming concerts
    (3)
    Is there a website where i can see all upcoming concerts and stuff to see if they are in my area and
    when they are, things like that.....
  27. MySQL Database IPB 2.0.0 Installation Problem
    (2)
    Hello! I want to install ipb 2.0.0 on my server. I will show my screenshot what im doing...
    First: Configuration MySQL in Cpanel: Next: Installation IPB: Last: Problem: Error:
    Help me please!....
  28. [NP] Free .info domains tutorial
    (30)
    - n00b pr00f #2 - Free .info domain name That's right people, I've made a n00b pr00f tutorial
    on how to get FREE .info domains. They are free for 1 year and work great! In order to get
    your free .info domains, you first must create a support account with www.1dni.com . This is the
    site that is giving away the free domains. https://www.1dni.com/cgi-bin/support_signup.cgi is
    the direct link to sign up for a support account. It's a simple form you must fill out, do it.
    After that, check your email for a confirmation link. Some email addresses will fi....
  29. MySQL database setup in the host
    (6)
    I just got my free host website ready in freenukehosting. Is there anyway to create MySQL database
    in the free hosting for my php photo album and forum, as its states there is MySQL database support
    in the Free hosting service? Plz advise. Thx! :wink:....
  30. Usefull phpBB sites and info. [IMPORTANT UPDATE: 02-28-05]
    (9)
    In this topic I will give some usefull sites and info. I start with info because that is most
    important: Info : phpBB is under a GPL license. It is 100% free and it may be reselled (thanks
    abcde for the notification). You may also adjust it like whatever you want. There are no problems
    with installing mods. If you want to make a pre-hacked phpBB (phpBB with mods installed) and
    publish it you must ask permission to all authors of the mods you are using. And ofcourse the
    most important one: DO NOT REMOVE THE COPYRIGHT . If you do you will not get support....

    1. Looking for set, database, record, info

Searching Video's for set, database, record, info
advertisement



How to set-up a database to record info



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE