Turning table field into Array?

Hey, I wanted to know if it’s possible to turn a table field into array. How it currently works is like this.

“UPDATE users SET total_item = total_item + 1 WHERE user = ?”

Meaning the field goes up by numbers so the field could be like 5.

Now the tricky part is that I want to break that into a array e.g (1, 2, 3, 4, 5) how could I do this via PHP?

You can, but I don’t understand what you are trying to do, so I can’t really explain how.

[php]SHOW COLUMNS FROM table;[/php]

Would grab the columns. That would be returned in an array.

Sponsor our Newsletter | Privacy Policy | Terms of Service