prudens Posted March 2, 2008 Share Posted March 2, 2008 $query3 = "SELECT * FROM studentgov_legislation WHERE sponsors LIKE '%$user_id%'"; $results3 = mysql_query($query3); I want to echo "no results" if $results3 returns nothing... How do i do it? Quote Link to comment Share on other sites More sharing options...
fert Posted March 2, 2008 Share Posted March 2, 2008 if(mysql_num_rows($results3)==0) { //etc } Quote Link to comment Share on other sites More sharing options...
prudens Posted March 2, 2008 Author Share Posted March 2, 2008 Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.