{"id":26466,"date":"2023-05-25T19:09:39","date_gmt":"2023-05-25T12:09:39","guid":{"rendered":"https:\/\/tom.ji42.com\/?p=26466"},"modified":"2023-05-25T19:09:39","modified_gmt":"2023-05-25T12:09:39","slug":"%e0%b9%80%e0%b8%8a%e0%b9%87%e0%b8%84%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5-%e0%b8%81%e0%b8%a3%e0%b8%93%e0%b8%b5%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%a1%e0%b8%b5%e0%b8%82%e0%b9%89%e0%b8%ad","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=26466","title":{"rendered":"\u0e40\u0e0a\u0e47\u0e04\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e01\u0e23\u0e13\u0e35\u0e44\u0e21\u0e48\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19 database PHP"},"content":{"rendered":"<div>&lt;meta charset=utf-8&#8243; \/&gt;<\/div>\n<div>&lt;?php<\/div>\n<div>\/\/\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d database<\/div>\n<div>require_once(&#8216;dbconnect.php&#8217;);<\/div>\n<div><\/div>\n<div>\/\/\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01\u0e1f\u0e2d\u0e23\u0e4c\u0e21 (\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e44\u0e1b\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e2d\u0e07\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a\u0e41\u0e25\u0e49\u0e27 action \u0e21\u0e32\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e35\u0e49<\/div>\n<div>$MEMBERNO = $_REQUEST[&#8220;MEMBERNO&#8221;];<\/div>\n<p><!--more--><\/p>\n<div><\/div>\n<div>\/\/\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e21\u0e35\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/div>\n<div>$check = &#8220;select * from tb_member\u00a0 where MEMBERNO = &#8216;$MEMBERNO'&#8221;;<\/div>\n<div>\u00a0 \u00a0 $result\u00a0 = mysql_query($check) or die(mysql_error());<\/div>\n<div>$num=mysql_num_rows($result);<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 if($num==0)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 {<\/div>\n<div>\/\/\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e19\u0e35\u0e49\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e30\u0e40\u0e14\u0e49\u0e07\u0e44\u0e1b\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01 (\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49\u0e17\u0e33\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e2d\u0e07\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e25\u0e2d\u0e07\u0e14\u0e39 workshop \u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e04\u0e23\u0e31\u0e1a)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0echo &#8220;&lt;script&gt;&#8221;;<\/div>\n<div>echo &#8220;alert(&#8216;\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e19\u0e35\u0e49\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 !&#8217;);&#8221;;<\/div>\n<div>echo &#8220;window.location=&#8217;add_member.php&#8217;;&#8221;;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;&lt;\/script&gt;&#8221;;<\/div>\n<div><\/div>\n<div>}else{<\/div>\n<div><\/div>\n<div>\/\/Insert to db<\/div>\n<div>$sql = &#8220;INSERT INTO tb_member (MEMBERNO) VALUES (&#8216;$MEMBERNO&#8217;)&#8221;;<\/div>\n<div>$result = mysql_db_query($database_dbconnect, $sql) or die (&#8220;Error in query: $sql&#8221;. mysql_error());<\/div>\n<div>}<\/div>\n<div>mysql_close($dbconnect);<\/div>\n<div>if($result){<\/div>\n<div>\u00a0 echo &#8220;&lt;script type=&#8217;text\/javascript&#8217;&gt;&#8221;;<\/div>\n<div>\u00a0 echo &#8220;alert (&#8216;\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08&#8217;);&#8221;;<\/div>\n<div>echo &#8220;window.location=&#8217;register.php&#8217;;&#8221;;<\/div>\n<div>echo &#8220;&lt;\/script&gt;&#8221;;<\/div>\n<div>\u00a0 }<\/div>\n<div>\u00a0 else{<\/div>\n<div>\u00a0 \u00a0 echo &#8220;&lt;script type=&#8217;text\/javascript&#8217;&gt;&#8221;;<\/div>\n<div>echo &#8220;alert (&#8216;\u0e40\u0e01\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14&#8217;);&#8221;;<\/div>\n<div>echo &#8220;window.location=&#8217;register.php&#8217;;&#8221;;<\/div>\n<div>\u00a0 echo &#8220;&lt;\/script&gt;&#8221;;<\/div>\n<div>\u00a0 }<\/div>\n<div><\/div>\n<div>?&gt;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&lt;meta charset=utf-8&#8243; \/&gt; &lt;?php \/\/\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d database require_once(&#8216;dbconnect.php&#8217;); \/\/\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01\u0e1f\u0e2d\u0e23\u0e4c\u0e21 (\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e44\u0e1b\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e2d\u0e07\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a\u0e41\u0e25\u0e49\u0e27 action \u0e21\u0e32\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e35\u0e49 $MEMBERNO = $_REQUEST[&#8220;MEMBERNO&#8221;];<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-26466","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-6SS","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/26466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26466"}],"version-history":[{"count":1,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/26466\/revisions"}],"predecessor-version":[{"id":26467,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/26466\/revisions\/26467"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}