I'm Using frndzcafe latest script. Please help to solve this error.
Showing "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\core.php on line 2408"
core.php on line 2408 Code is
And the full function code is:
Showing "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\core.php on line 2408"
core.php on line 2408 Code is
PHP Code:
while($smilie=mysql_fetch_array($smilies))
PHP Code:
function getsmilies1($text,$ud)
{
$sql = "SELECT * FROM smilies437 where (ht<'51' or resize>'0') and id!='897' and id!='4202'";
$smilies = mysql_query($sql);
while($smilie=mysql_fetch_array($smilies))
{
$scode = $smilie[1];
if($smilie[5]>0)$spath =''.$smilie[2].'" height="'.$smilie[5].'';else $spath = $smilie[2];
$text = str_replace($scode,'<img src="'.$spath.'" alt="'.$scode.'" title="'.$scode.'"/>',$text);
}
return $text;
}
Comment