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