I am working on a recipe site for a school project, and I am trying to echo out two columns of arrays from my database in mysqli.
The arrays look like this:
And when I echo them out I would like them too look like this:
I have literally tried everywhere to find and answer.
My database name is "opskriftreg", and the connection to it works, the rest of the code comes out.
You can use
explode
to make an array of it,Example:
You are trying to complicate things?! simply get the two columns using a normal MySQL query, and do the job through your language:
For example in PHP: