{"id":141,"date":"2024-04-11T07:27:57","date_gmt":"2024-04-10T22:27:57","guid":{"rendered":"http:\/\/inwelly.com\/?p=141"},"modified":"2024-04-23T05:29:57","modified_gmt":"2024-04-22T20:29:57","slug":"php-%ec%9d%b4%ec%a0%84%ea%b8%80-%eb%8b%a4%ec%9d%8c%ea%b8%80","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=141","title":{"rendered":"PHP \uc774\uc804\uae00 , \ub2e4\uc74c\uae00"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>&lt;?\n\nfunction nextpage( $gubun , $tablename , $columname ,  $no )\n{\n\n if( $gubun &amp;&amp; $tablename &amp;&amp; $columname &amp;&amp; $no )\n {\n\n  if( $gubun == 1 ) \/\/ \uc774\uc804 \ubc88\ud638 \ucc3e\uae30\n  {\n   $call_info = mysql_fetch_array(mysql_query(\" select max($columname) callno from $tablename where $columname &lt; $no \"));\n  }\n  else if ( $gubun == 2 ) \/\/ \ub2e4\uc74c \ubc88\ud638 \ucc3e\uae30\n  {\n   $call_info = mysql_fetch_array(mysql_query(\" select min($columname) callno from $tablename where $columname > $no \"));\n  }\n  \n  $str = $call_info&#91;callno];\n }\n else\n {\n  $str = \"\" ;\n }\n \n return $str ; \n}\n\n\n\n\/\/ \uc0ac\uc6a9 ------------------------------------------------------------------------------------------- \n\n  if( nextpage( 1, '\ud14c\uc774\ube14\uc774\ub984' , ''\uceec\ub7fc\uc758\uc774\ub984' , \ud604\uc7ac\uae00num ) )\n  {\n  echo \"&lt;input type=button value='\uc774\uc804\uae00' onclick=\"\" >&amp;nbsp;\";\n  }\n\n  if( nextpage( 2, '\ud14c\uc774\ube14\uc774\ub984' , '\uceec\ub7fc\uc758\uc774\ub984' , \ud604\uc7ac\uae00num ) )\n  {\n  echo \"&amp;nbsp;&lt;input type=button value='\ub2e4\uc74c\uae00' onclick=\"\" >\";\n  }\n?><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1251,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":142,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/media\/1251"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}