dbhost="localhost"; $my_db->dbuser="ataka"; $my_db->dbpasswd="stone0"; $my_db->dbname="taroden"; #DB接続 $error=$my_db->open_mysql(); $type_name="link"; $list_pos = ""; if(isset($_GET['list_pos'])) { $list_pos = $_GET['list_pos']; } ?> たろう歯科医院:LINK(リンク)


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; ?>

"; if($list_pos-3>=0) { $before_pos=$list_pos-3; print ""; } if($all_list-$list_pos>3) { $next_pos=$list_pos+3; print ""; } ?>