Jump to content

long formatted text in a field


dbdummy

Recommended Posts

Hi, i have spent the last couple of hours googling this...

 

I have pages that have quite a bit of css formatted text. multiple paragraphs, unordered lists, headlines, etc. I don't want to have to break this up, but cannot fine what I need to get the text into one field in the database...is this possible?

 

thanks

 

Link to comment
Share on other sites

not sure what you're asking, are you saying that its to much data to fit in a single field?

 

if so, just change the field type to something like "text" or "longtext" or "blob"  which don't require a set maximum length (unlike "varchar" or "char" which have a max of 255 characters)

Link to comment
Share on other sites

not sure what you're asking, are you saying that its to much data to fit in a single field?

 

if so, just change the field type to something like "text" or "longtext" or "blob"  which don't require a set maximum length (unlike "varchar" or "char" which have a max of 255 characters)

 

no, i have text formatted in css. ie

 

<p><span class="finheader">Here is my Headline</span><br>
                                            <span class="protext">here is some 
                                            text. and here is an external <a href="../about/trainers.php">link</a> 
                                            blah blah blah.</span></p>
                                          <p class="protext">oh, and here is another 
                                            paragraph. with alot of blah blah 
                                            blah.</p>
                                          <ul>
                                            <li class="protext"> here is bullet 
                                              1 </li>
                                            <li class="protext">here is bullet 
                                              2 </li>
                                            <li class="protext">here is bullet 
                                              point number 3</li>
                                          </ul>
                                          <p class="section">and them some more 
                                            blah blah text. formatted in a different 
                                            css style. and i have pages of this 
                                            stuff. </p>

I don't want to break the text up, so what can mysql handle with the above formatted text. can i just copy that as is and paste into the mysql field? or do i need some preformatted something around the whole thing? or do I need to change the tags <p class="section"> etc. to some other type of code?

 

thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.