It seems like your problem isn't with mysql_num_rows, but instead with mysql_query. If mysql_query fails, the PHP documentation actually says you receive a warning, not an error! Therefore the value you receive in $get is not a resource (aka a result set), but the boolean FALSE. When you pass FALSE to mysql_num_rows, it obviously errors out because it's expecting a resource.
So, why is mysql_query failing then? Does config.php connect to your database? If not, how does the database resource link get set up?
And at a basic robustness level, you should be checking the response from mysql_query to make sure it's not false before calling mysql_num_rows() against it.
Jon Emerson
http://www.jonemerson.net/