Ok, yet another problem. I would like to print out 6 categories from the databas.
Code:
$result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "jobs WHERE act = 1");
Then I would like to get the content inside the categories.
Code:
$resultRequest = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "jobs WHERE act = 0 and category = '". $category['category'] ."' LIMIT 5");
Then I would like to print it out like this.
Code:
+-----------------------+-----------------------+-----------------------+
| Category 1 | Category 2 | Category 3 |
+-----------------------+-----------------------+-----------------------+
| Content in | Content in | Content in |
| Category 1 | Category 2 | Category 3 |
+-----------------------+-----------------------+-----------------------+
| Category 4 | Category 5 | Category 6 |
+-----------------------+-----------------------+-----------------------+
| Content in | Content in | Content in |
| Category 4 | Category 5 | Category 6 |
+-----------------------+-----------------------+-----------------------+
Anyone have any idea on how to do that?