WordPress.org

Ready to get started?Download WordPress

Forums

Using "wpdb" (2 posts)

  1. bremmerm
    Member
    Posted 2 years ago #

    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

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.