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 -

content management system - How to allow only English submissions on Pligg CMS -

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