View Single Post
  #21  
Old 11-01-2005, 02:03 PM
 
SellPro SellPro is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 6
 

Default

I'm trying to achieve the same effect, but I'm having some trouble. Here is the code I'm using. I know that I need the value from the second extra field for each item, but this gives me a smarty error. It's trying to use $location as a smarty tag, I just want it to be a variable. Any help?

Code:
<? $result = mysql_query("SELECT * FROM `xcart_extra_field_values` WHERE `productid` =$product.productid and `fieldid` =2"); while($r=mysql_fetch_array($result)) { $location=$r["value"]; ?> <? echo $location ?> <? } ?>
__________________
Version 4.0.16
Reply With Quote