No dice. I tried something very similar to your code:
Code:
$product_info = func_select_product($productid, $user_account['membership']);
$unit_text = func_query("SELECT unit, code FROM units WHERE code='$product_info[unit]'");
$smarty->assign("unit_text",$unit_text);
...and when I go to any product page, I get the "Access denied !
You are not allowed to access that resource!" message. I also thought about just trying to build my own query, based on the productid, but I can't even figure out how to get that variable. $products['productid'] doesn't work.
I'm sure I'm nearing ten hours on this and I'm about to bug out. Once again, my client is going to have to suffer because Smarty is a pain in the ass. Thanks a bunch for the help so far, and if you've got any other ideas, I'm dying to hear them
