Posted by lol Tue 27th Feb 2007 21:06 - Syntax is PHP - 34 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
Description:
asdasd
asdasd
-
-
$categories = array("category.category_id = 379", "(category.category_id = 148 OR category.category_id = 50)", "(category.category_id = 9 OR category.category_id = 471)", "(category.category_id = 379 OR category.category_id = 380 OR category.category_id = 7 OR category.category_id = 450 OR category.category_id = 370 OR category.category_id = 447)", "category.category_id = 394");
-
-
$x=1;
-
foreach ($categories as $category_sql) {
-
-
$data = mysql_query("SELECT * FROM product, category WHERE product.placement_pp=1 AND ".$category_sql." AND product.category_key=category.category_id AND (active=1 OR active=2) AND category.name IS NOT NULL ORDER BY category.name ASC");
-
$id = $row['category_id'];
-
$names[$id] = $row['name'];
-
}
-
-
# jesus christ I dont want perfumes here!
-
$i = 0;
-
if ($x == 1) $catname = "SkinCare";
-
elseif ($x == 2) $catname = "HairCare";
-
elseif ($x == 3) $catname = "BodyBath";
-
elseif ($x == 4) $catname = "Candles";
-
elseif ($x == 5) $catname = "GiftSets";
-
foreach($new as $catKey => $catName) {
-
$globKey[] = $catKey;
-
$i++;
-
}
-
$x++;
-
}
-
?>
-
-
-
WORK GREAT UNTILL GETS TO X = 5 !
-
menu1[0]='';
-
menu2[0]='';
-
menu2[1]='';
-
menu3[0]='';
-
menu3[1]='';
-
menu4[0]='';
-
menu4[1]='';
-
menu4[2]='';
-
menu4[3]='';
-
menu4[4]='';
-
menu4[5]='';
-
-
Warning: array_unique(): The argument should be an array in /usr/local/psa/home/vhosts/perfunique.com/httpdocs/header.php on line 61
-
-
Warning: Invalid argument supplied for foreach() in /usr/local/psa/home/vhosts/perfunique.com/httpdocs/header.php on line 72
-
-
wots the prob ?
PermaLink to this entry https://pastebin.co.uk/11091
Posted by lol Tue 27th Feb 2007 21:06 - Syntax is PHP - 34 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0