Codeigniter : Check duplicate data with num_rows

this workshop use to check a  duplicate data with num_rows in codeigniter.  eg = colunm ‘mailto’

example  code 

the table

view

controller

result 

if can add data echo added !!  or duplicate data echo duplicate !!.

 

 

 

(Visited 1,215 times, 24 visits today)