Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating MySQL Database Table

Status
Not open for further replies.

rmccoy

MIS
Mar 22, 2001
4
0
0
US
I have a form on a website that has contact information. The only part I am having trouble with is creating the section in the MySQL database which captures a comments section.

What type of format do I set that up in MySQL? text? textarea?

Thanks in advance

Ryan McCoy
 
Do you mean capturing a text from the form and put it in the database? If so, just add a column of the text type and insert it.

If you mean anything else, be more specific :)
 
Depends on how long you would allow the comments to be. If it would fit as a VARCHAR, then you'd definitely want that- otherwise, TEXT can take care of a much longer string. Liam Morley
imotic@hotmail.com
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top