Jump to content

Number of Messages


daveoffy

Recommended Posts

We would need to see your code like revraz said but it would go something like this:

 

$sql = "SELECT your_field FROM your_table WHERE your_id = your_id";
$result = mysql_query($sql) or die(mysql_error());
$num_messages = mysql_num_rows($result);
echo "You have: " . $num_messages;

Link to comment
https://forums.phpfreaks.com/topic/138219-number-of-messages/#findComment-722609
Share on other sites

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.