onedumbcoder Posted September 10, 2009 Share Posted September 10, 2009 is there anything wrong with doing it this way: $result = mysql_query($query) or die(mysql_error()); echo count($result); if all you care about is that the query returns at lest 1 row. Quote Link to comment https://forums.phpfreaks.com/topic/173749-number-of-rows-return/ Share on other sites More sharing options...
onedumbcoder Posted September 10, 2009 Author Share Posted September 10, 2009 never mind it does not work and i can not delete this question. Quote Link to comment https://forums.phpfreaks.com/topic/173749-number-of-rows-return/#findComment-915901 Share on other sites More sharing options...
kickstart Posted September 10, 2009 Share Posted September 10, 2009 Hi $result isn't an array, hence why count won't work on it. You can mark a question as solved. All the best Keith Quote Link to comment https://forums.phpfreaks.com/topic/173749-number-of-rows-return/#findComment-915929 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.