Page 1 of 1

error message problem!

Posted: Wed Jan 18, 2006 9:40 am
by cooper3000
Warning: mysql_data_seek(): Offset 0 is invalid for MySQL result index 2 (or the query data is unbuffered) in C:\....

this error only occurs when there is no result found, what can i do to sort this?

cheers

Cooper

Posted: Wed Jan 18, 2006 9:59 am
by Skittlewidth
You could check the result of your initial query to see how many rows were returned using mysql_num_rows($result)
and only if it is > 0 execute mysql_data_seek();

It's hard for me to tell when you haven't shown any of your code.