• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to generate Custom id in codeigniter

#1
Code:
$cc = $this->db->count_all('job_card');
$coun = str_pad($cc,4,STR_PAD_LEFT);
$id = "JI"."-";
$d = date('y') ;
$mnth = date("m");
$customid = $id.$d.$mnth.$coun;
Help me: I am generating "JI-18051000" This id. But i need "JI-18050001" this id.
Reply


Messages In This Thread
how to generate Custom id in codeigniter - by azmath - 05-29-2018, 09:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.