witam mam takie problem mianowicie nie wiem jak wyświetlić te rekordy z bazy danych w smarty. proszę o pomooc
$results = mysql_query("SELECT * FROM `sg_apartments` ORDER BY `added` LIMIT " . $start . "," . $limit);
$t = array();
if (mysql_num_rows($results) >= 1){
while ($row = mysql_fetch_array($results)){
array_push($t, $row['photo1']);
array_push($t, $row['name']);
array_push($t, $row['area']);
array_push($t, $row['people']);
array_push($t, $row['rooms']);
array_push($t, $row['price']);
echo '
';
print_r ($t);
echo '
'; } } $smarty->assign(“nazwa”, $t);[/code]
i wtedy podaje w tpl to: {$nazwa} ale to nie działa co mam zrobić, jak je pobrać i wyświetlić w tpl?