誰說的get_magic_quotes_gpc()被廢除了?親,有事沒事去查查官網唄
http://php.net/manual/en/function.get-magic-quotes-gpc.php
http://php.net/manual/en/function.get-magic-quotes-gpc.php
2016-06-01
這個我有個疑問,加入是這樣的update語句應該會出現問題吧。例如:update table set value = value+1
2016-05-30
現在最新版 $smarty->template_dir 等等,變成了
$smart->setTemplateDir("tpl");
$smart->setCompileDir("template_c");
$smart->setCacheDir("cache");
$smart->setTemplateDir("tpl");
$smart->setCompileDir("template_c");
$smart->setCacheDir("cache");
2016-05-30
這個insert我覺得可以不用foreach取值,可以用
$keys = implode(",", "`".array_keys($arr)."`"); //獲取字段名
$values = implode(",", "`".array_values($arr)."'"); //獲取值的名稱
$sql = "insert into ".$table."("."$keys".") VALUES ($values)";
$keys = implode(",", "`".array_keys($arr)."`"); //獲取字段名
$values = implode(",", "`".array_values($arr)."'"); //獲取值的名稱
$sql = "insert into ".$table."("."$keys".") VALUES ($values)";
2016-05-30