1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP/MySQL/ Display

Discussion in 'PHP' started by hightide13, Nov 9, 2004.

  1. #1
    I have a DB of realtors. There are a few fields in my DB that will be blank for certain realtors (ie. URL, fax, whatever...)

    Here is the code that I am using to display the info from a search form on the page:
    SEMrush
     
    hightide13, Nov 9, 2004 IP
    SEMrush
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sure print or echo each item (name, fax, url etc) in a separate statement.`
    
    if( strlen($row[fax]) > 0 ) 
        echo $row[fax] . "<br />";
    if( strlen($row[phone]) > 0 ) 
        echo $row[phone] . "<br />";
    
    Code (markup):
     
    exam, Nov 9, 2004 IP
  3. hightide13

    hightide13 Peon

    Messages:
    127
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Exam. I will give that a shot.
     
    hightide13, Nov 10, 2004 IP
  4. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no prob. man. hope it works for you.
     
    exam, Nov 10, 2004 IP