Returning an array of column data MySQL/PHP -


I know mysql_fetch_assoc which puts all data in one array from one line. Is there anything parallel to insert any data into an array? Such as the list of Title IDs

and you may find everything you're looking for You can group all values ​​with commas using one line, you can use GROUP_CONCAT and then explosions () .

PHP will create an array like this (after executing the query):

  $ col_array = explosion (',' $ line ['kernel']);    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -