我在CodeIgniter中做应用程序,我不知道如何在CodeIgniter中比较电子邮件与db,请任何人帮助我.
调节器
public function signup()
{
$this->load->view('signup');
}
public function savedata(){
$this->load->library('form_validation');
$this->form_validation->set_rules('firstname', 'firstname', 'required');
$this->form_validation->set_rules('lastname', 'lastname', 'required');
if ($this->form_validation->run() == TRUE) // Only add new option if it is unique
{
$result = $this->account_model->insert();
if($result > 0)
{
$data['message'] = "Added successfully";
$this->load->view('signup',$data);
}
else
{
$this->index();
}
}
else
{
$this->load->view('signup');
}
}
Run Code Online (Sandbox Code Playgroud)
如何发送电子邮件以及是否存在电子邮件.
我有使用某些 api 的国家/地区代码和国家/地区名称,有什么方法可以在 php.ini 中获取给定国家/地区代码和国家/地区名称的时区。我有这样的数据,
address:Object
city:"-"
continent:"Asia"
continent_code:"AS"
country:"India"
country_code:"IN"
Run Code Online (Sandbox Code Playgroud)
我正在获取这些数据,我想获取给定地址的时区,有什么方法可以在 php.ini 中执行。
提前致谢