السلام عليكم ورحمة الله وبركاته

اخواني ظهرت لي هذه المشكله

بعد ان رقت شركة الاستضافه السيرفر الى php 5

والخطاء هو

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/----/public_html/uploader/cp/header.php on line 62

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/----/public_html/uploader/cp/header.php on line 64

وهذا الكود كامل

كود PHP:
<?php
/*==========================================================================*\
|| //////////////////////////////////////////////////////////////////////// ||
|| // Uploader script Version 1.0.0                                      // ||
|| // -------------------------------------------------------------------// ||
|| // Copyright ©2006 Elite for Hosting  Design co.All Rights Reserved.  // ||
|| // For more supporting please contact us   .                          // ||
|| // -------------- UPLOADER SCRIPT IS FREE SOFTWARE ----------------   // ||
|| //------------------ http://www.elite4host.com------------------------// ||
|| //////////////////////////////////////////////////////////////////////// ||
\*==========================================================================*/

echo'<! Powered by Elite4host Uploader For VB  Ver 1.0.0  "http://www.elite4host.com">';
?>
<html>
<head>
    <title>لوحة التحكم</title>
    <META content=text/html; charset=windows-1256 http-equiv=Content-Type>
    <link rel="stylesheet" type="text/css" href="fff.css">
    
 <script>
function check()
{
x=confirm("هل انت متأكد من حذف هذه المجموعة")
if (x==true)
{
return true
}
else
{
return false
}
}
</script>
    
    <style>
    td{
    font-family : "MS Sans Serif", serif;
    font-size : 8pt;
}
</style>
</head>

<body >






<?require("function.php");
db_connect();
$nnxxn=mysql_query("select * from files");
$nnn=mysql_num_rows($nnxxn);
//count(distinct)
$nnxxn2=mysql_query("select count(distinct(u_id)) as c from files");
$n=mysql_fetch_array($nnxxn2);
$nnn3=$n["c"];

//$result2=mysql_query("select count(id) as c from files where timea >$tt");        
 
$result2=mysql_query("select * from files where timea >$tt ");      
                
$myrow=mysql_fetch_array($result2); 
                
// $n33=$myrow["c"]; 
                 
$n33=mysql_num_rows($result2);

//$nnn3=mysql_num_rows($nnxxn2);
?>

<table dir="rtl" height="100%"  width="100%" align="center" cellspacing="2" cellpadding="2" border="0">

  <tr valign="top">
    <td valign="top" colspan="2"  align="center" >الـــســــلام علــيكــم    مرحــبـا  بـك  فـي  لـوحــة الـتــحكـــــم</td>
  </tr>

<tr valign="top">


    <td height="40" valign="top"  align="center" width="18%">
    

    <table align="center" cellspacing="2" cellpadding="10" border="0">
<?$gy='';
if(
$n33>0)
$gy="&nbsp;(<font color=#FF0000>&nbsp;$n33&nbsp;</font>)";?>
        <tr><td><a target="_blank" href="../index.php">استعراض الموقع</a></td></tr>
        <tr><td><a href="index.php?new=1">جديد الملفات<?echo$gy;?></a></td></tr>
        <tr><td><a href="index.php">ادارة الملفات</a></td></tr>
        <tr><td><a href="mange.php?t=user">إدارة الأعضاء</a></td></tr>
        <tr><td><a href="mange.php?t=set">إعدادات الموقع</a></td></tr>
        <tr><td><a href="mange.php?t=bqt">إدارة المجموعات</a></td></tr>
        <tr><td><a href="mange.php?t=sallw">إدارة الامتدادات المسموحة</a></td></tr>
        <tr><td><a href="mange.php?t=forum">الربط مع المنتدى</a></td></tr>
        <tr><td><a href="mange.php?t=styles">إدارة القوالب</a></td></tr>
        <tr><td><a href="mange.php?t=accounts">حـسـابك</a></td></tr>
        <tr><td><a href="login.php?t=logout">تسجيل خروج</a></td></tr>
        <tr><td>عدد الملفات ( <?echo$nnn;?> )</td></tr>
        <tr><td>عدد الذين يستخدمون المركز ( <?echo$nnn3;?> )</td></tr>
    </table>
    
    
    
     </td>

    <td  align="center" height="100%" >
<?
/*==========================================================================*\
|| //////////////////////////////////////////////////////////////////////// ||
|| // Uploader script Version 1.0.0                                      // ||
|| //------------------ http://www.elite4host.com------------------------// ||
|| //////////////////////////////////////////////////////////////////////// ||
\*==========================================================================*/
?>