It almost certainly means your query could not be parsed/processed by MySQL, so mysql_query() returned boolean false instead of a resource ID. You should always check the result of any query and log an error if it fails. For quick-and-dirty debugging (but not for the final production version), you could do:
$rs1 = mysql_query($strsql) or die(mysql_error() . "<br />$strsql");
PS: Welcome to the forums, and in the future, please help us help you by using the [noparse]
...
[/noparse] bbcode tags around your code samples.