Rain TPL ou Smarty como conectar com um banco de dados e Imprimir com uma Array?

9 views
Skip to first unread message

TARCISIO CASTRO DO Nascimento

unread,
Oct 19, 2014, 12:56:19 PM10/19/14
to phpper...@googlegroups.com
$resultaat = $mysql->sql_query("SELECT * from `produto`");
$all = array(); 
while($db_row = mysql_fetch_array($resultaat)) { 
   $all[] = $db_row; 


$smarty->assign('all', $all);



Reply all
Reply to author
Forward
0 new messages