PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i have this while loop but it never displayes the first row - whichever colum i sort by it wil always start from the scond row. HELP!
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
You're saying it skips the first record in your table and starts with the second? I doubt that has anything to do with your while() loop, it is likely an issue with your SQL statement or table makeup. Please provide a few more details, the code above this while() loop, the SQL, table makeup, etc. and when doing so, use the PHP and code tags available to you.
it looks like you're setting local variables for the first row you're retrieving...what you're doing with those I can't tell because it's not in the code you posted.
if you need those local variables, the way I would do it would be to set them on the first iteration of the loop rather than use mysql_data_seek() as mysql_data_seek() is more resource heavy than just setting the vars the first time through. Either way would work though.