How can I return a whole mysql result set, and one at a time set each row as an array?

Posted by RichardHarrington on Stack Overflow See other posts from Stack Overflow or by RichardHarrington
Published on 2010-04-18T17:35:20Z Indexed on 2010/04/18 17:43 UTC
Read the original article Hit count: 291

Filed under:
|
|
|
foreach($scraperSites as $site) {

    //$scraperWriter->addSite( new ScraperSite($site) );
    print_r($site);

}

scraperSites is the array of all sites from the mySQL database; I'm trying to keep $site as an array, (but only with one row worth of data), add it to an object, then move on to the next row.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql