I have the following table with images for a blog post:
+----+---------+------------------------+-----------+-----------+-------+
| id | id_post | imagine | descriere | tip | sters |
+----+---------+------------------------+-----------+-----------+-------+
| 1 | 4 | asdasdsadasdasdasd.jpg | NULL | thumbnail | 0 |
| 2 | 4 | asdasdsadasdasdasd.jpg | NULL | full | 0 |
| 3 | 4 | asdasdsadasdasdasd.jpg | NULL | thumbnail | 0 |
| 4 | 4 | asdasdsadasdasdasd.jpg | NULL | full | 0 |
+----+---------+------------------------+-----------+-----------+-------+
In this table there's a column named "tip" (or type, in english) which represents the image type: full screen, or thumbnail. When someone uploads an image, there will always be a pair of "full" and "thumbnail" entries.
What I'm trying to do is to get all the images for a post and store them into an array, but with a single entry for each image like this: Array ( [0] => Array ( [thumbnail] => "1.jpg", [full] => "11.jpg")...