{"id":753,"date":"2009-11-21T22:34:00","date_gmt":"2009-11-21T02:34:00","guid":{"rendered":""},"modified":"2013-11-26T12:01:33","modified_gmt":"2013-11-26T04:01:33","slug":"php%e6%8f%92%e5%85%a5%e5%8f%8d%e6%96%9c%e6%9d%a0%e5%88%b0%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/753.html","title":{"rendered":"PHP\u63d2\u5165\u53cd\u659c\u6760\u5230\u6570\u636e\u5e93\u4e2d"},"content":{"rendered":"<p>\u4eca\u5929\u665a\u4e0a\u641e\u4e86\u8fd1\u4e00\u4e2a\u5c0f\u65f6\uff0c\u5c31\u662f\u8fd9\u4e2a\u539f\u56e0\uff0c\u53cd\u659c\u6760\u63d2\u5165\u5230\u6570\u636e\u5e93\u4e2d\u4f1a\u59cb\u7ec8\u5f53\u4f5c\u8f6c\u4e49\u5b57\u7b26\u3002\u540e\u6765\u627e\u5230\u4e86\u89e3\u51b3\u529e\u6cd5\uff0c\u8f6c\u4e49\u5b57\u7b26\u771f\u9ebb\u70e6\uff0c\u4e0d\u77e5\u9053\u662f\u8c01\u8bbe\u8ba1\u7684\uff0c\u5982\u679c\u90fd\u50cfDelphi\u90a3\u6837\u5c31\u597d\u4e86\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nif(!(get_magic_quotes_gpc())) {\/\/\u53bb\u6389\u53cd\u659c\u6760\u4e3a\u5b57\u7b26\r\n   $qgzx_sql=str_replace('\\\\','\\\\\\\\',$qgzx_sql);\r\n   $zxj_sql=str_replace('\\\\','\\\\\\\\',$zxj_sql);\r\n   $jxj_sql=str_replace('\\\\','\\\\\\\\',$jxj_sql);\r\n   $dk_sql=str_replace('\\\\','\\\\\\\\',$dk_sql);\r\n  }\r\n  $sql=&quot;insert into data (stu_num,stu_name,stu_class,stu_phone,stu_idcard,stu_mail,stu_qgzx,stu_zxj,stu_jxj,stu_dk,bank_id,bank_count,stu_info)&quot;.\r\n  &quot;values('&quot;.$stu_num.&quot;','&quot;.$stu_name.&quot;','&quot;.$stu_class.&quot;','&quot;.$stu_phone.&quot;','&quot;.$stu_idcard.&quot;','&quot;.$stu_mail.&quot;','&quot;.\r\n  $qgzx_sql.&quot;','&quot;.$zxj_sql.&quot;','&quot;.$jxj_sql.&quot;','&quot;.$dk_sql.&quot;','&quot;.$bank_id.&quot;','&quot;.$bank_count.&quot;','&quot;.$stu_info.&quot;')&quot;;\r\n  $result=mysql_query($sql);\r\n<\/pre>\n<p>\u76f4\u63a5\u7528str_replace\u51fd\u6570\u5c06\\\u6362\u6210\\\\\u5c31\u597d\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u665a\u4e0a\u641e\u4e86\u8fd1\u4e00\u4e2a\u5c0f\u65f6\uff0c\u5c31\u662f\u8fd9\u4e2a\u539f\u56e0\uff0c\u53cd\u659c\u6760\u63d2\u5165\u5230\u6570\u636e\u5e93\u4e2d\u4f1a\u59cb\u7ec8\u5f53\u4f5c\u8f6c\u4e49\u5b57\u7b26\u3002\u540e\u6765\u627e\u5230\u4e86\u89e3\u51b3\u529e\u6cd5\uff0c\u8f6c\u4e49\u5b57\u7b26\u771f\u9ebb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-753","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=753"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/753\/revisions"}],"predecessor-version":[{"id":5247,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/753\/revisions\/5247"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}