getRanking('Books','466300'); // 画面表示 $template = 'index.html'; $smarty = new Smarty(); $smarty->assign('books',$books); $smarty->display($template); ?>