PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm using a select statement that is returning two rows. I want to put those rows into an array, but my code only creates the current array that is in the loop and when it goes through the loop the second time the first array is replaced in the $array variable by the second row. How can I store all rows into an array?