Results 1 to 17 of 17

Thread: trim [Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    trim [Resolved]

    Ok, so I'm using the trim function on a field being retrieved from a MS SQL Database. The field appears to be empty, but the following does not work.
    PHP Code:
    echo "<p class=warn>-" trim($row[5]) . "-"
    It simply outputs "- -"... with a space between the dashes. Any ideas why?
    Last edited by ober0330; May 5th, 2004 at 08:21 AM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

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



Click Here to Expand Forum to Full Width