Re: [hegadmin] Photo Adding
Hi hegadmin,
Let's tackle the first problem first. Then we can look at the category issue.
- The first step is to create a mockup of how you want the page to look. It's easy to skip this step but it saves a lot of time in the long run.
- Next, there's a few methods to have 2 columns, one is to put your content in a fixed width div and float it left. The divs will go side by side until there is no more space and then go down to the next line.
- If you don't like the CSS approach you can use this counter code to insert a </tr><tr> every so many rows:
<?php $maxCols=2; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
- With table tags it looks something like this:
<table border="1">
<tr>
<?php foreach ($records as $record): ?>
<td> ... show record ... </td>
<?php $maxCols=2; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
<?php endforeach ?>
</tr>
</table>
Give that a try and let me know how it works for you.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com