1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Php/Mysql query problem (displaying sql results in a fixed width environment)

Discussion in 'Software' started by Theo, 20 May 2004.

  1. Theo

    Theo What's a Dremel?

    Joined:
    12 Jun 2003
    Posts:
    466
    Likes Received:
    0
    -edit

    please delete, got it sorted.
     
    Last edited: 21 May 2004
  2. planki

    planki ...

    Joined:
    20 Dec 2003
    Posts:
    1,132
    Likes Received:
    0
    it would have being interesting to see what the original problem was and how you fixed it.
     
  3. Theo

    Theo What's a Dremel?

    Joined:
    12 Jun 2003
    Posts:
    466
    Likes Received:
    0
    Upon retrieving data from a MySQL db, and lumping it into a HTML table - the width of the table would increase to wider than I specified in the table tag. (eg <table border="0" width="500">

    To fix this, I used the php wordwrap function to add breaks into the mysql entries when entering data into the database :)

    Was for a portfolio site that I decided to do with html/php.. had to be handed in as an assignment last friday, which means I can't edit it any further until it's been completely marked.

    Kind of annoying, because it's seriously sloppy work, needs a bunch of editing/css adjustments/content added. Ah well.. fingers crossed I'll get lucky with the marks, and the lecturer doesn't pick up on how messy the includes are.


    www.iamtheking.net
     
  4. planki

    planki ...

    Joined:
    20 Dec 2003
    Posts:
    1,132
    Likes Received:
    0
    ah cheers i had the same problem but never got around to finding a work around cheers!
     

Share This Page