mysql_fetch_array() Error

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  hsatterwhite 2 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165174

    lancebutler
    Participant

    I’ve never had this problem before with pods. Maybe I’m just doing something wrong. But I have a pod (currently with only two entries in it). I’m passing in the ID explicitly to retrieve one of the entries but with the below code:

    $lands = new Pod(‘landentries’, 2);
    echo $lands->getTotalRows();

    I get the following error:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/transvgf/public_html/wp-content/plugins/pods/classes/Pod.php on line 570

    Anyone see where I messed up? Thanks! Lance

    #165175

    hsatterwhite
    Member

    Passing the ID is only going to return 1 record. Try taking out echo $lands->getTotalRows();

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting