$sql = "select * from `{".$table."}` "这句话为何有大括号也可以?
functiondb_select($table,$where=""){$sql="select*from`{".$table."}`";if($where!="")$s...
function db_select($table,$where=""){
$sql = "select * from `{".$table."}` ";
if ($where !="") $sql .= " where $where";
return $this->db_fetch_array($sql);
}
我知道了 是因为终端函数的$sql = ereg_replace("\{".$found."\}",$this->db_prefix.$found, $sql); 展开
$sql = "select * from `{".$table."}` ";
if ($where !="") $sql .= " where $where";
return $this->db_fetch_array($sql);
}
我知道了 是因为终端函数的$sql = ereg_replace("\{".$found."\}",$this->db_prefix.$found, $sql); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询