server-webapi-code-04-product.php / php
<?php header("Content-Type: text/xml"); include("../common_db.php"); require('Smarty.class.php'); smarty->template_dir = '/www/smarty/example.preinheimer.com/templates/'; smarty->config_dir = '/www/smarty/example.preinheimer.com/configs/'; query = "SELECT id, name, description, category, unit, price FROM 03_store_products ORDER BY id"; query, 2); smarty->assign('url', smarty->assign('tips', smarty->display('product.tpl'); ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.