Home / Programming / php / I need a php function to put all rows from a mysql query into an array
I need a php function to put all rows from a mysql query into an array
Last updated: 02/07/2012
This function takes a database link ($link), SQL statement ($sql) and array ($all_rows), and returns the result from the query in the array ($all_rows) which is passed in by reference.