How to make a dynamic table in PHP?

How can i fix the width of table and make text continue from second line?

  • I am designing web page and getting data from MySQL with PHP. On the right of the page there is a navigation menu and i've inserted a table to left side of page. But when i write long text with no spaces the table width is growing and reaching the right side of page. How can i make the width of table static and make the letters of the word continue from the second line? I tried to write width codes to HTML and CSS but it do not work with long words and the table with is still growing. Thanka for all answers.

  • Answer:

    Confused a bit. Is your sentence static or dynamic data driven. If it is data driven if you copy and paste into your mysql you may get a problem of a one sentence bug. Static way to make line breaks or sentences is to use <br> or xhtml <br/> each time you want to create a new sentence. If you use dynamic is should adjust properly.

firegeni... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.