A
A
azkaban4ik2017-09-22 19:20:36
PHP
azkaban4ik, 2017-09-22 19:20:36

API costs a limit, how to get rid of it?

The API has a limit for outputting values, if I set the limit to 999999 then just a white screen, if not more than 1000 this happens, there are no errors. I also remove the white screen from the limit code and there are no errors either. I can't figure out what could be the problem.
Here are the parts of the code:

$videosdb = BiQuery1("*", "dle_site", array(array("news", 0, ">")), "news", "DESC", "{$news_limit}");

function BiQuery1($sel, $table, $where = "", $order = "", $order1 = "", $limit = "")
{
    $query = "SELECT " . $sel . " FROM `" . $table . "` " . BiQueryWhere($where);
    if ($order !== "") {
        $query = $query . " ORDER by " . $order . " " . $order1 . " ";
    }
    if ($limit !== "") {
        $query = $query . " LIMIT " . $limit . "  ";
    }
    $query = $query . " ;";

    return BiQuery($query);
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
a0lwq, 2017-09-22
@a0lwq

See logs
This is not a white screen. This is an error while executing the script

S
synapse_people, 2017-09-22
@synapse_people

you do not have enough memory to load such an array of data)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question