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.

Number keeps appearing below plugin shortcode output

Discussion in 'WordPress' started by Warwick Lyons, Feb 27, 2013.

  1. #1
    I am creating a small plugin shortcode which appears to work ok except the number 1 appears below the output
    This is the code I am using to extract the data from the wp database table and wish to display on a wordpress page.
    SEMrush

    global $wpdb; $result = $wpdb->get_row ( 'SELECT * FROM wp_lb_person WHERE id = "'.$id.'"'); echo $result->first_name. " " . $result->family_name. "<br />"; echo $result->date_of_birth."<br />"; echo $result->date_of_death."<br />";


    The output to the page is below
    David Lyons
    02/02/2001
    02/02/2001
    1 <------THIS IS THE PROBLEM
    Any ideas would be appreciated
    Regards
    Warwick


     
    Warwick Lyons, Feb 27, 2013 IP
    SEMrush