Re: [PHP] Alternating Links

2002-12-19 Thread Philip Olson
This faqt answers your question: http://www.faqts.com/knowledge_base/view.phtml/aid/8583 Regards, Philip Olson On Fri, 20 Dec 2002, conbud wrote: Hi. Lets says I have 8 links stored in a database, extracting those links is no problem. Now lets says I have 2 columns, how do I get link 1

Re: [PHP] Alternating Links

2002-12-19 Thread Justin French
There was a post on a similar thing the other day, and about once a week for the past few years :P Quick (untested) example: table ? $i = 0; $sql = 'select link from tablename'; $result = mysql_query($sql); while($myrow = mysql_fetch_array($result)) { $i++; if($i == 1) { echo 'tr'; }

Re: [PHP] Alternating Links

2002-12-19 Thread conbud
Hey, thanks. I should have thought about it longer, since I made something the exact same to alternate tr bgcolors. Thanks for refreshing though. Justin French wrote: There was a post on a similar thing the other day, and about once a week for the past few years :P Quick (untested) example: