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. 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. 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 Link to comment https://forums.phpfreaks.com/topic/173749-number-of-rows-return/#findComment-915929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.