Any method to get primary key matching a given value ?

[email protected] (Ratin) Thu, 18 Aug 2016 11:27:25 -0700
Newsgroups php.db
Message-ID <CAC0DzxyM8r978FhX33fgaRAm0Mbber5xKq5ipRhTDodb-TH4_w@mail.gmail.com>
--001a114d431ed90690053a5cbb8d
Content-Type: text/plain; charset=UTF-8

I'm writing the generic get that works on different tables having different
primary keys but the argument of get is always the primary key , i.e. get
request is -

get (column name, value)

the value is always the primary key value.

It looks like it would be a pretty standard method but I cant find a method
like that. Anybody have any clue?

Thanks

Ratin

--001a114d431ed90690053a5cbb8d--