Welcome Guest, Not a member yet? Register   Sign In
Unique customer
#1

I’m facing a small problem and hope CodeIgniter 4 has some build in way to handle this. I’m more then willing to write something myself, but rather use something internal if it’s available. 
I have a inventory management system. When a product gets sold, we link it to a specific customer. I want to make sure that a specific customer is always unique, so you can’t accidentally add it twice. This means I have to check if the combination of a couple of values is unique in the database (so, not the individual values, but the combination of those values). 
Is there a build in validation filter to check this? I know about is_unique, but that’s for a specific value.
Reply


Messages In This Thread
Unique customer - by BFlokstra - 08-27-2021, 01:21 AM
RE: Unique customer - by InsiteFX - 08-27-2021, 01:38 AM
RE: Unique customer - by BFlokstra - 08-27-2021, 03:18 AM
RE: Unique customer - by nfaiz - 08-27-2021, 05:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB