Welcome Guest, Not a member yet? Register   Sign In
use of Unique in mySQL field cases Error
#14

(This post was last modified: 07-25-2020, 03:41 PM by richb201.)

I guess more of my problem is with the model. I have named it MyModel.php and load it with $this->load->model('MyModel') in the controller's __construct? And then just call insertIgnore() in one of my callbacks? I also added another function to MyModel called public function update_population(). At the top of this model file containing the two functions, insertIgnore() and update_population() I have

class MyModel extends CI_Model {

    public function __construct() {
        parent::__construct();
    }


Well, I managed to get the function in the model to run, update_population().  Now I just need to figure out how to set up the SQL.

I still need to get the insertIgnore going....

thx for your help
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: use of Unique in mySQL field cases Error - by richb201 - 07-25-2020, 01:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB