I’m selecting a single column from a MySQL table with mysql_query(). Is there already a function for getting the results into an array, or will I have to iterate through all the results with something like mysql_fetch_array()?
I’m selecting a single column from a MySQL table with mysql_query() . Is there
Share
You have to iterate.
If you moved into the 21st century, and used mysqli, there’s a mysqli_fetch_all() function…. and you’d be able to use prepared statements