thanks Anthony, so far that's got rid of the error message. however, how would I get it to check to see if there is data? every time I use anything containing mysql_fetch_array($result); it brings back the error message again. any ideas? thanks again, dave stevens