Welcome Guest, Not a member yet? Register   Sign In
Deleting selected records
#4

(This post was last modified: 11-01-2016, 04:32 PM by codeguy.)

@Wouter60, So I put it in an online regex tester and it worked properly catching only first-char lower case alphas. Now I need to debug the surrounding code to see where I screwed up. This is my model function BTW:

<MyCode>
public function libraryClean() {

$this->db->select('*');
$this->db->where('title REGEXP "^[a-z]" ', NULL, FALSE);
$list=$this->db->get('mz');
return $list->num_rows();
}
</MyCode>

Thanks for the help.
Reply


Messages In This Thread
Deleting selected records - by codeguy - 11-01-2016, 10:18 AM
RE: Deleting selected records - by Wouter60 - 11-01-2016, 12:02 PM
RE: Deleting selected records - by codeguy - 11-01-2016, 03:59 PM
RE: Deleting selected records - by codeguy - 11-01-2016, 04:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB