Вопрос по созданию ссылки
Shustov Alexander 11.06.2004 12:51
Подскажите, как правильно сделать ссылку $out.name, чтобы она окрывала
страницу card.html в которой выводятся остальные поля из бд.
Я присваиваю переменной x значение id, но в @outputcard[] эта переменная
почему-то не работает.
Форма...
@outputform[]
$conn[
mysql://root:xxx111@localhost/catalog]
^connect[$conn]{
$out[^table::sql{
select * from company where count='$form:search'
}]
^if($out){
^out.menu{<a href="card.html">$out.name $x[$out.id] </a> <br>}<br>
}
}
@outputcard[]
$conn[
mysql://root:xxx111@localhost/catalog]
^connect[$conn]{
$out[^table::sql{
select * from company where id='$x'
}]
^if($out){
^out.menu{$out.person <br>}
}
}
- Вопрос по созданию ссылки, Shustov Alexander 11.06.2004 12:51