#1
  1. No Profile Picture
    Martijn
    Guest
    Devshed Newbie (0 - 499 posts)
    This is my table

    name: data1
    lastname: data2

    How can I make it that if the
    field is empty that it doesn't show
    the description...

    NOT LIKE THIS:

    name: data1
    lastname:

    BUT LIKE THIS:

    name: data1

    martijn
  2. #2
  3. No Profile Picture
    jpenix
    Guest
    Devshed Newbie (0 - 499 posts)
    print ("Name: " . $data1 . "<BR>");
    if ($data2)
    {
    print ("Lastname: " . $data2 . "<BR>");
    }
    else
    {
    print ("<BR>");
    }

Similar Threads

  1. Replies: 1
    Last Post: February 6th, 2004, 06:53 AM
  2. Inserting from form to multiple tables
    By barth in forum MySQL Help
    Replies: 0
    Last Post: January 25th, 2004, 10:27 AM
  3. cgi.pm module not compatible with multipart enctype syntax
    By Suzette in forum Perl Programming
    Replies: 2
    Last Post: December 22nd, 2003, 12:19 PM
  4. return value from 3 fields into 1 field
    By denali in forum MS SQL Development
    Replies: 1
    Last Post: December 19th, 2003, 08:44 AM
  5. Replies: 4
    Last Post: December 3rd, 2003, 04:08 AM

IMN logo majestic logo threadwatch logo seochat tools logo