No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Re: Both of those seem to have accuracy problems... why not count the comments when the page is loaded? I assume the comments are their own table in the database? [CODE]$query = "SELECT comment_id FROM comments WHERE article_id = '$article_id'"; $result = @mysqli_query($connection, $query); $num_comments = mysqli_num_rows($result);[/CODE] | |
Hi everyone, Daniweb has helped me a lot in the past and for once I haven't found the solution in a previous thread. Here is my issue. I simply cannot figure out what to do to send/receive XML using PHP SOAP functions. It sounds simple enough, but I have been … | |
Re: Does this help? [CODE]$text = 'qinetiq, sarah, sarah, qinetiq, stacey, qinetiq, sarah, stacey stacey, qinetiq, sarah, stacey, stacey, qinetiq, sarah, qinetiq'; $num_qinetiq = substr_count($text, 'qinetiq'); $num_sarah = substr_count($text, 'sarah'); $num_stacey = substr_count($text, 'stacey'); echo "Count for qinetiq: $num_qinetiq <br />"; echo "Count for Sarah: $num_sarah <br />"; echo "Count for … |
The End.