Soldato
- Joined
- 30 Nov 2005
- Posts
- 3,084
- Location
- London
Is it possible to skip a value in SQL and go onto the next one?
Hope this makes sense.
Hope this makes sense.
INSERT INTO foo
(bar, baz)
VALUES ("foibles", "lol")
$result = mysql_query("SELECT * FROM foo");
$i = 0;
while ( $row = mysql_fetch_assoc($result) ) {
echo $row['bar'];
if ( ++$i % 2 == 0 )
echo '<br />';
}