PHP mySQL query:
$query = "SELECT * FROM table_name ORDER BY id < 3, id";
$result = mysql_query($query);
$work = mysql_fetch_array($result);
RESULT in mySQL:
3 Shawn
4 Ryan
5 Seth
1 Joe
2 Craig
PHP:
<?php while ($work = mysql_fetch_array($result)) : ?>
<p> <?php echo $work['id']; ?> </p>
<?php endwhile; ?>
RESULT:
4
5
1
2
I’m missing the id that I want my data to start with. Thanks for the help.
If you did
$work = mysql_fetch_array($result);once before the while loop, your cursor begins from the second row.