Results 1 to 4 of 4

Thread: redtrive data from MYSQL DB

  1. #1
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default redtrive data from MYSQL DB

    in my mysql DB. i have a table.
    in that table a field having around 1500 charecter.
    i get that data by using php echo.

    now i want to display only first 25 charecters.

    same time iam displaying the retrived data in a table cell. if i get the full data that distrub make the table alignment.

    is there any way to make the table table standard. and is there any way to avoid the extra datas which destroy the table structure and display only the portion of a data which dont distrub the table structure..

  2. #2
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anybody there to help me

  3. #3
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    plz help

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You could probably use substr() to limit the number of characters from the db to whatever you want. If you need help adding this to your php script, post the script and I'll have a stab at it.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •