Teacher, do the update conditions set here make sense?
Another丶
Another丶 2019-10-11 21:28:32
0
3
1183

$map =['is_update'=> $data['is_updata]]

The is_ipdate in data is obtained from the session, and the session is obtained from the admin during login, then this $ data['is_updata] must be the same as in the table. How to verify it?

Another丶
Another丶

reply all(1)
卢小强

if($model::get($map)){}else{} $model is your database. Use $map to determine whether there is a corresponding value in the database

  • reply There must be a database. The isupdate in the judgment condition is downloaded from the database.
    Another丶 author 2019-10-12 09:25:52
  • reply Did I understand it wrong? Don't you want to verify whether the value of is_updata in SESSION and is_updata in the database are the same?
    卢小强 author 2019-10-14 09:39:11
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!