WordPress.org

Ready to get started?Download WordPress

Forums

Can not read more than 99 times (1 post)

  1. gungmas
    Member
    Posted 4 years ago #

    I am trying to import data from another system but I can only read 99 the posts 99 times.

    Example: I call get_one() more than 100 times from get_many() but I only get 99 valid results.

    function get_many() {
    $sql = 'SELECT something FROM table WHERE condition;
    $results = $lodb->get_results($sql, ARRAY_A); // Returns more than 100 posts
    if (is_array($results)) {
    foreach ($results as $result) {
    extract($result);
    $values = get_one($key); // This call will only get 99 valid results
    }
    }
    ...
    }

    function get_one($key) {
    $sql = 'SELECT something FROM table WHERE condition;
    return $lodb->get_results($sql, ARRAY_A); // Return more than 100 posts
    }

    I get the same result when I iterate a table with LIMIT OFFSET, I only get the 99 furst results OK.

    I run WP 3.0 beta 1 on a Mac Snow Leopard and MAMP.

    I would appreciate any help!

    Thanks in advance.

    Gungmas

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags