please i need help
part of my script below:
13 $query = "Select * from members where member_id = '". $sponsorsid ."' and activated = 1" ;
14 $result=mysql_query($query);
15$num=mysql_numrows($result);
error is:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/followup/public_html/default.php on line 15
i decided to add this line to it-
die( "Unable to query the database" . mysql_error());
this is the erroor message i get below with blank page
Unable to query the databaseNo database selected
please what do i do now as i am really worried on how to figure this out.