Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Storing large amount of text in a MySQL database
Old 02-11-2006, 07:05 AM Storing large amount of text in a MySQL database
Novice Talker

Posts: 8
Trades: 0
Hi all,

I come from a programming background, and am just starting to learn php/MySQL for the purposes of setting up an online catalogue of recepie ideas. I am doing okay in terms of learning the languages, but am having trouble importing the bulky text (like, the recepie ingredients an method) into the database. When i'm using the 'INFILE' sql function, it's only importing the first 50 or so characters.

I'm starting to think that maybe i have the approach all wrong. Should i be looking to store all this text directly into the MySQL database? or should i just store a link to a text file and have all the text seperate? What's the generally accepted rule when storing large amounts of text in a database?

Any advice you could give me would be much appreciated!
Metalmikey666 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-11-2006, 07:42 AM Re: Storing large amount of text in a MySQL database
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
depends on how you are going to display it

personally I store the text content in a TEXT field
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-11-2006, 12:30 PM Re: Storing large amount of text in a MySQL database
Defies a Status

Posts: 1,605
Trades: 0
How do you have your DB field defined?

and here is a link that may help you.

http://www.ispirer.com/doc/sqlways38...ays-1-200.html



Colbyt
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Storing large amount of text in a MySQL database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17567 seconds with 12 queries