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? Link to comment https://forums.phpfreaks.com/topic/93949-arrays/ Share on other sites More sharing options...
fert Posted March 2, 2008 Share Posted March 2, 2008 if(mysql_num_rows($results3)==0) { //etc } Link to comment https://forums.phpfreaks.com/topic/93949-arrays/#findComment-481361 Share on other sites More sharing options...
prudens Posted March 2, 2008 Author Share Posted March 2, 2008 Thank you! Link to comment https://forums.phpfreaks.com/topic/93949-arrays/#findComment-481386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.