okay this is really wierd... ive used this function in many scripts...
and yet... its NOT WORKING IN THIS ONE...
i get
when i use thisPHP Code:Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /mounted-storage/home7/sub001/sc13805-XKIN/www/deadlyjynx/etc/private.php on line 9
It's really wierd that its not working... any help would be nice in solving this stupid problem.PHP Code:<?
session_start();
require"conn.php";
?>
<?php
$show = mysql_query("SELECT COUNT(*) AS PM FROM private_message WHERE receiver = '".$_SESSION['user']."'");
$PM = mysql_result($show, 0, "PM");
echo ("(");
if ($PM > 0)
{
echo "<font color=orange>";
}
echo ("$PM");
if ($PM > 0)
{
echo "</FoNt>";
}
echo")";
?>


Reply With Quote

