إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 08-09-2010, 12:50 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,613
عدد الـنقاط :3341
 تقييم المستوى : 2139

Resulting from the idea of pitchu i have a question,


Why do you make something like: PHP Code:
$db = $vbulletin->db;
$set = $db->query($q = "
SELECT searchlog.*
FROM "
. TABLE_PREFIX . "searchlog AS searchlog
WHERE searchhash = '"
. $db->escape_string($criteria->get_hash()) . "' AND
sortby = '"
. $db->escape_string($criteria->get_sort()) . "' AND

sortorder = '"
. $db->escape_string($criteria->get_sort_direction()) . "' AND
dateline > "
. (TIMENOW - (60*60)) . " AND
userid = "
. intval($user->get_field('userid')) . " AND
completed = 1
ORDER BY dateline DESC
LIMIT 1
"
);

really hard to read and make automatic code checking (what i made yesterday and you see the result in the tracker ) impossible

I don't see any result / benefit from it. Is there one? If there is a sense, it's ok for me and maybe i can learn something you

It just needs maybe more memory and time (because of the var. assignment) I wrote maybe because i'm not sure if it needs really more memory and time. Some people say it needs more and some not...
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


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

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 01:09 AM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML