I am having a mental blank here and cannot for the life of me figure out a solution.
My scenario is that I am programming in PHP and MySQL. I have a database table r
You should do something like this:
$data = array();
while($row = $db->database_fetch_assoc($query))
{
$data[] = $row;
}
Now $data is an array where each element is a row of the query result.
Then you can access the rows as $data[0], $data[1], and the elements within the rows as $data[1]['package'], $data[0]['itemtype'], because each row is an associative array.
You can get the number of rows returned using count($data).