This question has already been answered:
Help solve the problem produces such an error
Warning: mysql_num_rows () expects parameter 1 be resource, boolean given in / home / gtiradio / domains
Indicates:
if (mysql_num_rows($result_1) == 0) { ... } What's wrong?