Need some help for fix this error

Started on the old forum in August 2014 · view the original in the archive · old links redirect here

5 replies · 239 views · started 12 years ago · 1 min read

6 participants
angel_talha Newbie · 5 posts #1

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

  while($smilie=mysql_fetch_array($smilies))

And the full function code is:

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;
} 
Victor McOsano Ossybuzz Newbie · 7 posts #2

Hey I am also using the latest scripts but I am not able to find the secret staff code. How can I find it ???

arnage Lead · 811 posts #3
$sql = "SELECT * FROM smilies";

Check if the name of the table is "smilies".

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
wapxtech Developer · 189 posts #4

angel_talha wrote: 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

 while($smilie=mysql_fetch_array($smilies))

And the full function code is:

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;
} 

its none of the above, your error is inside your while loop "array issues" you should check for $smilie[] the value inside the braces should be correct its either numerical or the column it self.

External image (may be gone) http://wapx.amob.com Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!

centi Developer · 159 posts #5

remove the whole thing and try.. what does it do actually?

😳 .................................... http://photomag.lk/ .................................... 🤨

something else Fellow · 2,296 posts #6

The problem here is no data in the smilies table making the call for an array invalid

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close