skyer2000 Posted August 4, 2008 Share Posted August 4, 2008 Quick Question, After pulling results from a query, how do you skip the first result? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted August 4, 2008 Share Posted August 4, 2008 in php you can do http://us2.php.net/manual/en/function.mysql-field-seek.php otherwise you could try and do a LIMIT on a query that chops of row #1 Quote Link to comment Share on other sites More sharing options...
skyer2000 Posted August 4, 2008 Author Share Posted August 4, 2008 I am using PHP, but still can't figure it out. What do you mean by using Limit to chop of row #1? The results will be changing as I add newer ones, so I can't specifically skip a certain 'id'. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted August 4, 2008 Share Posted August 4, 2008 $sql = mysqls_query("SELECT * FROM `tableName`"); $i = 0; while($row = mysql_fetch_array($sql)){ if($i != 0){ echo $row['columnName'].'<br />'; } $i++; } Quote Link to comment Share on other sites More sharing options...
skyer2000 Posted August 4, 2008 Author Share Posted August 4, 2008 Of course, I never thought to do that, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.