I'm trying to make an array from a column in a MySQL table. I have a database called "background", within which there is a table called "colour". In the "colour" table are 2 columns, "name" (left column) and "hex" (right column). I want to make an array from the contents in the "name" column with PHP code. How do I go about this?
Please keep answers simple and concise. I am a beginner and will not understand long, complicated explanations. Thanks for the help in advance!
source https://stackoverflow.com/questions/68535153/making-an-array-from-a-column-in-a-mysql-table-in-php
Comments
Post a Comment