Quote:
|
Originally Posted by JaceXXX
Code:
<!-- categories //-->
<tr>
<td>
<?php
<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>
$categories_string = '';
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");
while ($categories = tep_db_fetch_array($categories_query)) {
$foo[$categories['categories_id']] = array(
'name' => $categories['categories_name'],
'parent' => $categories['parent_id'],
'level' => 0,
'path' => $categories['categories_id'],
'next_id' => false
);
if (isset($prev_id)) {
$foo[$prev_id]['next_id'] = $categories['categories_id'];
}
$prev_id = $categories['categories_id'];
if (!isset($first_element)) {
$first_element = $categories['categories_id'];
}
}
i wanna insert an image at the very top of it all, but within the php code so there is no gap between where the php starts and the html ends
|
Gotcha, see the post above, he nailed it. I thought you meant the table headers.