åºç¤ããã®PHPã¨ããæ¸ç±ãèªãã§ããã¾ããããSQLã¤ã³ã¸ã§ã¯ã·ã§ã³ã®æ»æä¾ã¨ãã¦ã以ä¸ã®SQLæãã§ããããä¾ãç´¹ä»ããã¦ãã¾ãããPHP+PDO+MySQLã¨ããçµã¿åããã§ãã SELECT * FROM tb2 WHERE ban=1;delete from tb2 2ã¤ã®SQLæãã»ãã³ãã³ã§åºåã£ã¦1ã¤ã«ã¾ã¨ãããã¦ãã¾ãããããããè¤æ(multiple statement)ãã¨è¨ãã¾ããç§ã¯ãSQLã¤ã³ã¸ã§ã¯ã·ã§ã³æ»æã®æèã§è¤æã使ããçµã¿åããã調ã¹ããã¨ããããPHPã¨MySQLã¨ããçµã¿åããã§ã¯ãè¤æã¯ä½¿ããªãã¨æã£ã¦ãã¾ããã®ã§ããã®æ»æã¯æç«ããªãã®ã§ã¯ãªããã¨æãã¾ããã ãããã決ãã¤ããè¯ããªãã¨æãæå ã®ç°å¢ã§åããã¦ã¿ãã¨ããããã£ããåãã§ã¯ããã¾ãããã PDOãç¨ãã¦MySQLãå¼ã³åºãå ´åã¯è¤æãå®è¡ã§ããã¨æ°ã¥ãã¾ãããããªãPDOã®å ´å
{{#tags}}- {{label}}
{{/tags}}