النتائج 1 إلى 9 من 9

الموضوع: بعد تغير الترميز ظهور علامات استفهام

  1. #1
    عضو جديد
    تاريخ التسجيل
    May 2010
    المشاركات
    8

    بعد تغير الترميز ظهور علامات استفهام



    السلام عليكم

    كل عام وانتم بخير


    قمت بتغير ترميز المنتدى الى utf8_general_ci

    باستخدام سكربت الاخ محب رسول الله والحمدلله تم التغير لترميز الجديد بنجاح



    لكن عندي مشكله في كود اخر عشر مواضيع يظهر علامات استفهام

    علما ان كود اخر عشر مواضيع هو ملف PHP




    كود PHP:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir=rtl>
    <head>
            <!-- no cache headers -->
            <meta http-equiv="Pragma" content="no-cache">
            <meta http-equiv="no-cache">
            <meta http-equiv="Expires" content="-1">
            <meta http-equiv="Cache-Control" content="no-cache">
            <!-- end no cache headers -->
            <meta name="keywords" content="Nabdh Alm3ani">
            <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
            <title>ÃÎÑ ÚÔÑÉ ãæÇÖíÚ ÈÇáãäÊÏì</title>
            <meta http-equiv="MSThemeCompatible" content="Yes">
          <style>
    <!--
    A:link {text-decoration: none ; color : #a97f26}
    A:visited {text-decoration: none ; color : #a97f26}
    A:active {text-decoration: none ; color : #a97f26}
    A:hover {text-decoration: underline ; color : #a97f26}
    //body {
     background-color: #000000;
    }
    body {
     background-color: #000000;
    }
    -->
        </style>
    </head>
    <body background="afdol_04.jpg" id="all" rightmargin="0" leftmargin="0" topmargin="3" marginwidth="0" marginheight="0" scroll=no>
    <?
    require("includes/config.php");
    /////////////// CONFIG ///////////////
    //
    // áÇ ÊÖÚ ÚáÇãÉ ( / ) ÚäÏ ÊÍÏíÏ ÇáãÓÇÑÇÊ
    $path "includes"// ãÓÇÑ ãáÝ config.php Ýí ãÌáÏ ÇáãäÊÏì
    $url "http://alfdol.com/forum"// ãÓÇÑ ãæÞÚ ÇáãäÊÏì
    $maxthreads "10"// ÇáÚÏÏ ÇáÐí ÊÑíÏ ÚÑÖå ãä ÇáãæÇÖíÚ Ýí ÂÎÑ ÇáãÔÇÑßÇÊ
    $ob "lastpost"// set to one of the following: replycount , views , lastposter , title , lastpost (lastpost is most popular. it's the thread most recently replied to, then the second-to-last most recent, etc.)
    $obdir "desc"// ÇáãÌáÏ ÇáÐí íÊã Ýíå ÇáÊÑÊíÈ which direction to sort? "desc" goes from bottom to top (9 to 1, z to a, etc.). "asc" goes top to bottom (1 to 9, a to z, etc.). if you use lastpost for $ob, leave this set to desc or it will not work correctly!
    $lastposter "1"// ÚÑÖ ÂÎÑ ßÇÊÈshow last poster? 1 = yes; 0 = no
    $replies "0"// ÚÑÖ ÅÍÕÇÁ ÇáÑÏ show reply count? 1 = yes; 0 = no
    $lastpostdate "0"// ÚÑÖ ÊÇÑíΠææÞÊ ÂÎÑ ÑÏ show last post date and time? 1 = yes; 0 = no
    $len 25 // ÃÞÕì ÚÏÏ ãä ÇáÇÍÑÝ áÚÑÖåÇ Ýí ÇáãæÖæÚ maximum number of characters of the title to show. e.g. if the title is 60 characters and this is set to 25, only the first 25 characters of the title will be shown (followed by ...)
    $excludeforums ""// if you want to exclude a forum, put it's ID here. more than one, seperate them with commas, NO SPACES! e.g. 1,2,3,4
    $includeforums ""// ÅÐÇ ÊÑíÏ ÊÍÏíÏ ãäÊÏì ãÚíä ÖÚ ÑÞãå åäÇ if you only want to include certain forums, put their ids here. separate more than one with commas, NO SPACES! e.g. 1,2,3,4
    //
    /////////////// CONFIG ///////////////
    echo "<marquee dir=\"rtl\" direction=\"right\" scrolldelay=\"120\" height=30 scrollAmount=5 onmouseover=this.stop() onmouseout=this.start()><FONT SIZE=\"1\" FACE=\"MS Sans Serif\"><font color=\"#8d691c\">ÂÎÑ ãæÇÖíÚ ÇáãäÊÏì:>>>&nbsp;&nbsp; ";
     
    $db mysql_connect($config['MasterServer']['servername'], $config['MasterServer']['username'], $config['MasterServer']['password']) or die("Could not connect");
        
    mysql_select_db($config['Database']['dbname'], $db) or die("ÛíÑ ÞÇÏÑ Úáì ÇáÇÊÕÇá ÈÞÇÚÏÉ ÇáÈíÇäÇÊ");

    $hfs $fs+2;
    $fs .= "pt";
    $hfs .= "pt";
     
    // the base WHERE statement
    $wheresql "WHERE thread.lastposter=user.username AND thread.open!='10'";
    // we can't have both the last 24 hours *and* the last 7 days, so error out if needed
    if ($last24 == "1" && $last7 == "1") {
            print(
    "Error: \$last24 and \$last7 are both set to 1. Please change one of them to 0.");
            exit;
    }
    // otherwise we're gonna find out which one it is
    // last 24
    if ($last24 == "1") {
            
    $time time()-86400;
            
    $wheresql .= " AND thread.lastpost>'$time'";
    }
    // last 7
    if ($last7 == "1") {
            
    $time time()-604800;
            
    $wheresql .= " AND thread.lastpost>'$time'";
    }
    // are we trying to exclude *and* include forums? if so, error out
    if ($excludeforums != "" && $includeforums != "") {
            print(
    "Error: \$includeforums and \$excludeforums are both set with numbers. Please remove the numbers from <b>one</b> of these two to proceed.");
            exit;
    }
    // otherwise figure out which one we're using
    // include forums
    if ($includeforums == "" or $includeforums <= "0") {
            
    $quarter "no";
    } else {
            
    $incfid explode(",",$includeforums); $i 0$a count($incfid);
            if (
    $a 1) {
                    
    $wheresql .= " AND (thread.forumid='$incfid[0]'";
                    ++
    $i;
                    while (
    $i $a) {
                            
    $wheresql .= " OR thread.forumid='$incfid[$i]'"; ++$i;
                    }
                    
    $wheresql .= ")";
            } else {
                    
    $wheresql .= " AND thread.forumid='$incfid[$i]'";
            }
    }
    // or exclude forums
    if ($excludeforums == "" or $excludeforums <= "0") {
            
    $quarter "no";
    } else {
            
    $excfid explode(",",$excludeforums); $i 0$a count($excfid);
            while (
    $i $a) {
                    
    $wheresql .= " AND thread.forumid!='$excfid[$i]'";        ++$i;
            }
    }
    // ooh a query!
    $query "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid,thread.iconid FROM thread,user $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads";
    // let's get the info
    $tr mysql_query($query) or die("MySQL reported this error while trying to retreive the info: ".mysql_error());
    $dtf mysql_query("SELECT value FROM setting WHERE varname='dateformat' OR varname='timeformat' OR varname='timeoffset' ORDER BY varname");
    $df mysql_result($dtf,0,0);
    $tf mysql_result($dtf,1,0);
    $tof mysql_result($dtf,2,0);

    // let's display the info
    while ($threads mysql_fetch_array($tr)) {
            echo 
    " <font color=\"#a97f26\">ÇáãæÖæÚ:</font> <a href=\"$url/showthread.php?=$session[sessionhash]&threadid=$threads[threadid]&goto=newpost\" title=\"$threads[title]\" target=_blank><font color=\"#a97f26\">$threads[title]</font></a>&nbsp;( ÃÎÑ ÑÏ : $threads[lastposter] )<font color=\"#a97f26\">&nbsp;&nbsp;&nbsp; <<::>> &nbsp;&nbsp;&nbsp;</font>";
    }
    // close it all up
    // bye Nabdh Alm3ani!
    ?></marquee>


















  2. #2
    عضو نشيط
    تاريخ التسجيل
    Mar 2009
    المشاركات
    131


    السلام عليكم

    غير هذا السطر
    كود PHP:
            <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> 
    الى

    كود PHP:
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 






    __________________
    http://servarica.com
    Xen VPS and WHMCS Xen Management Addon modules
    support@servarica.com

  3. #3
    عضو نشيط
    تاريخ التسجيل
    Aug 2007
    المشاركات
    65


    قم باعادة حفظ الملف بصيغة utf8 ومع تغير ماقاله اخويidontknow
    وقم برفعه مره اخرى وبإذن الله سوف يعمل





    __________________
    سوق الكويت

  4. #4
    عضو جديد
    تاريخ التسجيل
    May 2010
    المشاركات
    8


    يعطيكم العافيه يا اخوان

    طبقت الي تفضلتو فيه لكن ما انحلت المشكله الى الان






  5. #5
    عضو نشيط
    تاريخ التسجيل
    Aug 2007
    المشاركات
    65


    ممكن ترفق الملف اخر عشر المواضيع لمشاهدة؟ لو سمحت





    __________________
    سوق الكويت



  6. السلام عليكم..
    حلك سهل .. قم بوضع هذا السطر قبل اي عمليه استعلام .. ولاداعي لاستخدامه اكثر من مره
    كود PHP:
    <? mysql_query("SET NAMES utf8"); ?>
    مثلا قم بوضع ذالك السطر بعد السطر اللذي يحتوي الداله mysql_select_db





    __________________
    هلابي افضل المواقع العربية تصميماً
    انصح باستخدام ابونتو

  7. #7
    عضو جديد
    تاريخ التسجيل
    May 2010
    المشاركات
    8


    يعطيكم العافيه الملف بالمرفقات

    الهاكات شغاله اوكي
    والمنتدى ماشي تمام

    بس هالعشر مواضيع طالعه غلط





    الملفات المرفقة الملفات المرفقة

  8. #8
    عضو نشيط
    تاريخ التسجيل
    Aug 2007
    المشاركات
    65


    تفضل جرب الملف الحين وردلي خبر لو سمحت





    الملفات المرفقة الملفات المرفقة
    __________________
    سوق الكويت

  9. #9
    عضو جديد
    تاريخ التسجيل
    May 2010
    المشاركات
    8


    يعطيك العافيه اخوي

    جربت ونفس المشكله علامات ؟؟؟؟؟؟










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض