Forums
This topic is locked
Display Horizontally
Posted 08 Aug 2007 22:34:43
1
has voted
08 Aug 2007 22:34:43 daniel Gage posted:
I've actually got two questions. The first is probably so easy that i'm just overlooking something.I'm messing around with a different way to do something, and can't figure out how to get the borders off the picture when it is displayed. (that's the easy one).
The second, is that i'd like to get the data displayed horizontally for three rows and then vertical rows of three until the data is gone.
below is my code --- minus my attempts to get the border and horizontal listing.
Any help would be appreciated. I'm still new to this stuff.
echo "<a href=\"" . $row_newsitems['link'] . "\" target=\"_blank\">" . "<img src=\"" . $row_newsitems['picture'] . "\" target=\"blank\" >" . "</a></img><br>\n" ;
echo "<a href=\"" . $row_newsitems['link'] . "\" target=\"_blank\">" . $row_newsitems['title'] . "</a><br>\n";
echo $row_newsitems['blurb'] . "</p>\n";
$newsCount = $newsCount + 1;
Replies
Replied 09 Aug 2007 19:58:22
09 Aug 2007 19:58:22 daniel Gage replied:
finally figured out what i was doing with the border issue. So that's resolved.
And I've found another method to display in columns, which is okay, but not quite what I wanted. Would still like some help on trying to display data horizontally.
And I've found another method to display in columns, which is okay, but not quite what I wanted. Would still like some help on trying to display data horizontally.
Replied 09 Aug 2007 22:25:40
09 Aug 2007 22:25:40 daniel Gage replied:
figured it out for the most part. Just in case anyone was curious.
However now, my query is displaying the same thing in all 15 slots...
::sigh::
However now, my query is displaying the same thing in all 15 slots...
::sigh::
Replied 10 Aug 2007 16:36:38
10 Aug 2007 16:36:38 Alan C replied:
Hi
you will need two loops - an outer one that generates the lines - this steps in 3s, then an inner one that generates the three items that go on the line - this one takes its start from the outer loop and steps in 1s. If they are all the same it sounds like you don't have that inner loop.
If you post the loop code people can look it over and comment more easily.
you will need two loops - an outer one that generates the lines - this steps in 3s, then an inner one that generates the three items that go on the line - this one takes its start from the outer loop and steps in 1s. If they are all the same it sounds like you don't have that inner loop.
If you post the loop code people can look it over and comment more easily.