Vote count: 0 I am working on PHPStorm with a codeigniter framework and the MVC architecture. I need a function in my model that would query the sysuser table in my database and retu the uid (User Id) when the useame is passed. sysuser Table structure +---------------+----------------+-----------------+ | uid | name | useame | +---------------+----------------+-----------------+ | 1 | kim | kcdla | +---------------+----------------+-----------------+ | 2 | Sam | sammyG | +---------------+----------------+-----------------+ In my function, if I pass, for example, the useame kcdla I need to retrieve the uid as 1 so that I can store this to a variable as $uid and retu it to another function tha...
ادامه مطلب