How can I do a SELECT statement and have it returned the data incolumns instead of rows?
FROM
+----+-------+--------+
| id | name | number |
+----+-------+--------+
| 0 | test | 11 |
| 1 | test2 | 12 |
+----+-------+--------+
TO
+----+------+--------+----+-------+--------+
| id | name | number | id | name | number |
+----+------+--------+----+-------+--------+
| 0 | test | 11 | 1 | test2 | 12 |
+----+------+--------+----+-------+--------+
pobably you are searching this function:
http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat