Skip to content

Instantly share code, notes, and snippets.

@dca
Created October 13, 2012 01:57
Show Gist options
  • Select an option

  • Save dca/3882904 to your computer and use it in GitHub Desktop.

Select an option

Save dca/3882904 to your computer and use it in GitHub Desktop.
PHP 輸入處理
<?php
//輸入處裡
$in = array();
foreach ($_GET as $key => $value) {
$in[$key] = mysql_real_escape_string($value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment