Any method to get primary key matching a given value ?
| From: | Ratin | Date: | Thu, 18 Aug 2016 18:27:25 +0000 |
| Subject: | Any method to get primary key matching a given value ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-49108@lists.php.net to get a copy of this message | ||
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