I had a script for this that worked great in PHP 5.3. New host only supports 5.5 so I\'ve done some modifying. So far, I can only get one row to be returned. I\'ve been agonisin
Your while loop keeps overwriting the same array elements in the $row_array array.
To do what you're trying to do: while($row = mysqli_fetch_assoc($result)) { $row_array[] = $row; }