View Single Post
  #40  
Old 03-17-2005, 07:22 PM
 
mrbiggles mrbiggles is offline
 

Senior Member
  
Join Date: Jan 2005
Location: Adelaide , South Australia
Posts: 107
 

Default

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
__________________
www.creydall.com
X-Cart version 4.0.11
PHP 4.3.9 MySQL 4.0.22
Apache/1.3.33
Perl 5.008004
Adam
Adelaide South Australia
Reply With Quote