Thanks for the code, Chris, but still no luck.
This is the main block of code trying to piece all the variables together:
PHP Code:
$var_array = explode("/",$REQUEST_URI);
if ($var_array[2] == "") { $cat = '4178281'; $mode = books;}
else {
$sql = "SELECT * FROM blank_categories WHERE pid='$var_array[2]'";
$result = mysql_query($sql);
if (!$result) { echo("<P>Error performing query: " . mysql_error() . "</P>");
exit();
}
while($main = mysql_fetch_array($result)){
$pid = $main[pid];
$cat = $main[amazonid];
$name = $main[name];
$parent = $main[parentid];
$title = $name . " - Domain.com";
$mode = $main[MODE];
}
if($mode == "-unknown-"){
$mode = "universal";
}
Then these are called later:
Code:
$params = array(
'browse_node' => $cat,
'page' => $page,
'mode' => $mode,
'tag' => 'my-amazon-thingy',
'type' => 'heavy',
'sort' => '-orig-rel-date',
'devtag' => 'my-dev-token'
);
But I get an error:
We encountered an error at our end while processing your request. Please try again
Warning: Invalid argument supplied for foreach() in /usr/home/gift/public_html/cat on line 96
Page 1 of 0 -
Line 96 is:
PHP Code:
foreach ($items as $i)
Which then goes into outputting the data into HTML...
*sigh*
Bookmarks