How to select multiple rows from mysql with one query and use them in php

Use repeated calls to mysql_fetch_assoc. It’s documented right in the PHP manual. http://php.net/manual/function.mysql-fetch-assoc.php // While a row of data exists, put that row in $row as an associative array // Note: If you’re expecting just one row, no need to use a loop // Note: If you put extract($row); inside the following loop, you’ll // … Read more