Jump to content

Create an array inside a select query?


onedumbcoder

Recommended Posts

Ok lets say I have a table named box, and the box table has the following fields:

 

apple, orange, screw, nut, pen, shoe, lock.

 

 

How do I capture those as an array? SOmething like this

 

"SELECT tablearray = array(apple, orange, screw, nut, pen, shoe, lock) from box"

 

 

Link to comment
https://forums.phpfreaks.com/topic/169526-create-an-array-inside-a-select-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.