View Single Post
  #43  
Old 03-17-2005, 08:04 PM
 
moza moza is offline
 

Member
  
Join Date: Apr 2003
Location: Australia
Posts: 22
 

Default

Quote:
Originally Posted by mrbiggles
This is my code and it seems to work for me

Code:
<?php require "./auth.php"; require $xcart_dir."/include/categories.php"; $qry = "SELECT * FROM " . $sql_tbl["products"] . " where forsale='Y' order by product"; $result = db_query($qry); $products = array(); while ($result_row = db_fetch_array($result)) { $products[] = $result_row; } $smarty->assign("main","SEO_listing"); $smarty->assign("products",$products); func_display("customer/home.tpl", $smarty); ?>

Regards Adam

I tried this code and got same error :
Code:
Parse error: parse error, unexpected T_VARIABLE in /Applications/MAMP/htdocs/test_001/xcart_412/customer/listing.php on line 12
__________________
x-cart 3.5
Reply With Quote