prepare("SELECT i.id,i.titulo,i.foto,i.descripcion FROM info i,info_tag t where t.id_tag=? and t.id_nota=i.id order by i.id desc limit 50"); $st->bind_param('i',$id); if (!$st) { echo $cxn->error; } $st->execute(); $st->bind_result($nota_id, $titulo, $foto,$desc); while ($res= $st->fetch()) { $mil=intval($nota_id/1000); $url="/nota/$mil/$nota_id.shtml"; $img=''; if ($foto) { $num1=substr($foto,0,2); $num2=substr($foto,2,2); $img="/foto/t/$num1/$num2/$foto"; $img="$titulo"; } $titulo=substr($titulo,0,32); $desc=substr($desc,0,32); $html.="

$titulo

$img

$desc

"; } $st->free_result(); ?>
Inicio > Tags > descenso

descenso