Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single/Multiple Arrayed Result #13

Open
zubenelakrab opened this issue Jul 17, 2013 · 1 comment
Open

Single/Multiple Arrayed Result #13

zubenelakrab opened this issue Jul 17, 2013 · 1 comment

Comments

@zubenelakrab
Copy link

It should be nice cosiderate only one way to show results because if your are using this library then you need "two" ways to process data of a "single" or a "multiple" arrayed result. I just commented your code to avoid this.

function ArrayResults()
{

    //if ($this->records == 1) {
    //    return $this->ArrayResult();
    //}

    $this->arrayedResult = array();
    while ($data = mysql_fetch_assoc($this->result)) {
        $this->arrayedResult[] = $data;
    }
    return $this->arrayedResult;
}

Thanks

@gnuzilla
Copy link

Correctly. My SELECT often returns multiple rows, but sometimes return just one rows. So as Zubenelakrab said, it would be nice to have one way to show results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants