Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一些关于测试更新过程的帮助。我知道有affected_rows()函数来显示成功更新。但是当列值与以前的列相同时,我想通过一些准备好的 codeigniter 或 mysqli 函数返回 TRUE 或显示成功消息。(如果有)
如果即使列值相同也想返回 true,请始终在模型函数中返回 true,因此您不必在您的情况下使用affected_rows()。