All pastes #544631 Raw Edit

Something

public php v1 · immutable
·published 2007-06-06 15:01 UTC
rendered paste body
function countMsg () {	$getCount = mysql_query("SELECT * FROM message WHERE viewed = 'NO' AND userTo = '$id'")	or die(mysql_error());	$num = mysql_num_rows($getCount);	if($num > 0) {		echo $num;	} else {		echo '0';	}}