-
السلام عليكم
اخي واجهتنا مشكله في ملف اللنك الخاص بالمجلة
وهي عند القيام بالبحث تظهر لنا هذه الرسالة .
Warning: Variable used in global statement already exists in the function in /usr/local/plesk/apache/vhosts/albkri.com/httpdocs/nuke/html/links.php on line 953
وعند البحث وجدنا ان السطر يحتوي على التي .
global $admin, $perpage, $show, $linksresults;
وقد قمت بنسخ المقطع كامل ووضعه ضمن الموضوع .
وهذا هو المقطع كامل .
function visit($lid) {
mysql_query("update links_links set hits=hits+1 where lid=$lid");
$result = mysql_query("select url from links_links where lid=$lid");
list($url) = mysql_fetch_row($result);
Header("Location: $url");
}
function search($query, $min, $orderby, $show) {
global $admin, $perpage, $show, $linksresults;
if (!isset($min)) $min=0;
if (!isset($max)) $max=$min+$linksresults;
if(isset($orderby)) $orderby = convertorderbyin($orderby);
else $orderby = "title ASC";
if ($show!="") $linksresults = $show;
else $show=$linksresults;
$query = stripslashes($query);
$result = mysql_query("select lid, cid, sid, title, url, description, date, hits, linkratingsummary, totalvotes, totalcomments from links_links where title LIKE '%$query%' OR description LIKE '%$query%' ORDER BY $orderby LIMIT $min,$linksresults");
$fullcountresult=mysql_query("select lid, title, description, date, hits, linkratingsummary, totalvotes, totalcomments from links_links where title LIKE '%$query%' OR description LIKE '%$query%' ");
$totalselectedlinks = Mysql_num_rows($fullcountresult);
$nrows = mysql_num_rows($result);
$resultx = mysql_query("select * from links_subcategories where title LIKE '%$query%' ORDER BY title DESC");
$nrowsx = mysql_num_rows($resultx);
الجوارح ،،،
ضوابط المشاركة
- لا تستطيع إضافة مواضيع جديدة
- لا تستطيع الرد على المواضيع
- لا تستطيع إرفاق ملفات
- لا تستطيع تعديل مشاركاتك
-
قوانين المنتدى
أضف موقعك هنا |
اضافة محتوى فريد لموقعك