Created
October 17, 2012 16:09
-
-
Save tony1223/3906413 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getUserByAccount($account){ | |
$this->db->select("*"); | |
$query = $this->db->get_where("user",Array("account" => $account)); | |
if ($query->num_rows() <= 0){ //如果找不到 | |
return null; | |
} | |
return $query->row(); //回傳第一筆 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment