Selecting only populated columns in MySQL

Sharky Forums


Results 1 to 2 of 2

Thread: Selecting only populated columns in MySQL

Threaded View

  1. #1
    Ex-*** kid A's Avatar
    Join Date
    Sep 2000
    Location
    Norway
    Posts
    5,322

    Selecting only populated columns in MySQL

    Hey, still learning here ..

    How would I go about it if I were to display a row from my table, but exclude the columns that were NULL? I also want to find out if a column has a value, and return a result(0 or 1) but not the contents.

    I've fiddled around with it a bit, but cant really work it out.

    Also, how do I get PHP to parse HTML tags stored in my db (in a TEXT column)?

    Thanks again
    Last edited by kid A; 05-03-2003 at 03:02 PM.
    Now listening to various rock and metal
    143rd member to join Sharkyforums.

Posting Permissions

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