Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Your resultset is probably empty, resulting in that error. You should check the resultset to see if it's empty first, then fetch data from it if it's not empty.
But I have to ask, why are you not using a function that fetches the entire row at once, such as mysql_fetch_array()? It's much faster with less code.