wickedinfinity Posted November 12, 2005 Share Posted November 12, 2005 can COUNT (*) be used in a select into statment any help apprectated :-) Link to comment https://forums.phpfreaks.com/topic/2848-mysql-4-select-into/ Share on other sites More sharing options...
Cook Posted November 12, 2005 Share Posted November 12, 2005 Well yes, but knowing a bit more about what exactly it is that you're trying to do would help to help you better. Anyway, try something like this: $query = "SELECT COUNT(*) AS `mycount` FROM `mytable` WHERE (some condition of yours)"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); echo $row['mycount']; Link to comment https://forums.phpfreaks.com/topic/2848-mysql-4-select-into/#findComment-9569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.