Re: [PHP] Query to select every other record

2002-11-18 Thread Marek Kilimajer
You need this: while($row=mysql_fetch_array($res)) { echo first column; if($row=mysql_fetch_array($res)) { echo second column; } } Darren McPhee wrote: Does anybody know of a SELECT QUERY that will select every other record of a table ? I want to do this so that I can display m

RE: [PHP] Query to select every other record

2002-11-17 Thread David Freeman
> Does anybody know of a SELECT QUERY that will select every > other record of a > table ? I want to do this so that I can display my products > in 2 columns (I > will also be using arrays of course). Don't know of a select that'll do it, but then I don't really understand why you'd want

RE: [PHP] Query to select every other record

2002-11-17 Thread John W. Holmes
.. > -Original Message- > From: Darren McPhee [mailto:[EMAIL PROTECTED]] > Sent: Sunday, November 17, 2002 9:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Query to select every other record > > Does anybody know of a SELECT QUERY that will select every other record of &

[PHP] Query to select every other record

2002-11-17 Thread Darren McPhee
Does anybody know of a SELECT QUERY that will select every other record of a table ? I want to do this so that I can display my products in 2 columns (I will also be using arrays of course). The first column would show the result of the first query starting at record 1. The second column would s