Jump to content

how would i count


zhshero

Recommended Posts

i don't really have much of a code, half way of doing so i started thinking this can't be right and now i'm unsure where to even start

 

$sql = mysql_query("SELECT count(message_id) FROM messages WHERE MATCH(to_user='$userfinal', message_read)");

$total = mysql_fetch_array($sql);
$num = $total[0];

echo $num; 

Link to comment
https://forums.phpfreaks.com/topic/219175-how-would-i-count/#findComment-1136534
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.