0

Hello,
I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give me some clue how to do this?
Here is the code I am using. Thank you in advanced.

$i = 0;
while($row=mysql_fetch_array($result, MYSQL_NUM)) {
   if($i % 2 !0)
    {
    echo "<br/>";
    }
    echo "$row";
}
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Mars1936
0

try:

$i = 0;
while($row=mysql_fetch_array($result, MYSQL_NUM)) {
    echo "$row[0]";
   if( !(++$i % 2) )
    {
      echo "<br />";
    }
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.