Need some help for fix this error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help Need some help for fix this error

    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
    PHP Code:
      while($smilie=mysql_fetch_array($smilies)) 
    And the full function code is:
    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;


    #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 ???

    Comment


      #3
      PHP Code:
      $sql "SELECT * FROM smilies"

      Check if the name of the table is "smilies".
      <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

      Comment


        #4
        Originally posted by angel_talha View Post
        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
        PHP Code:
         while($smilie=mysql_fetch_array($smilies)) 
        And the full function code is:
        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;

        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.

        http://wapx.amob.com
        Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!

        Comment


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


          ....................................
          http://photomag.lk/
          ....................................

          Comment


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

            Comment

            Working...
            X