php - How to get one column of mysql_query results into an array? -



php - How to get one column of mysql_query results into an array? -

i'm selecting single column mysql table mysql_query(). there function getting results array, or have iterate through results mysql_fetch_array()?

you have iterate.

if moved 21st century, , used mysqli, there's mysqli_fetch_all() function.... , you'd able utilize prepared statements

php mysql

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - cuda, pycuda -- how to write complex numbers -- errors:class "cuComplex" has no member "i" -

How do I check if an insert was successful with MySQLdb in Python? -