WordPress.org

Support

Support » Plugins and Hacks » Hacks » Using "wpdb"

Using "wpdb"

  • bremmerm

    @bremmerm

    Hello,

    I am trying to use the Class Reference/wpdb

    I have the following code:

    $mylink = $wpdb->get_results( "SELECT post, FROM poll" );
    echo $mylink[2];

    Yet nothing is outputted….can someone better explain how to pull a whole row from a specific table.

    I read this as storing all values from row post into an array (select row post from table poll) and I think it should return (based on $mylink[2] ) should then show me the number that is in row 3.

    Any help better explaining would be much appreciated.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Using "wpdb"’ is closed to new replies.
Skip to toolbar