wickedinfinity Posted November 12, 2005 Share Posted November 12, 2005 can COUNT (*) be used in a select into statment any help apprectated :-) Quote Link to comment 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']; 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.