|
|
|
|
if($list_pos=="")
$list_pos=0;
$sql="select count(*) as max_cnt from put_text where name='{$type_name}'";
$rst=mysql_query($sql);
while($row=mysql_fetch_object($rst))
{
$all_list=$row->max_cnt;
}
$sql="select * from put_text where name='{$type_name}' order by no ASC limit {$list_pos},3";
$rst=mysql_query($sql);
$cnt=0;
while($row=mysql_fetch_object($rst))
{
$link_title=$row->title;
$link_text=$row->text;
$link_link=$row->link;
$link_no=$row->no;
?>
}
print " ";
if($list_pos-3>=0)
{
$before_pos=$list_pos-3;
print " ";
}
if($all_list-$list_pos>3)
{
$next_pos=$list_pos+3;
print " ";
}
?> |
|
|
|