Jump to content

Count Row From Two Tables...


Unholy Prayer

Recommended Posts

that depends on how your database is setup, but something like this may do the trick:

<?php
        $sql = "SELECT * FROM your_table WHERE forum = '". $forumName ."'";
        $query = mysql_query($sql);
        $numRows = mysql_num_rows($query);

        echo "Number of Replies: ". $numRows ."<br />\n";
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.