I am trying to pass a array that contains keys and values.
The keys are columns and values are the values to select.
I am trying to write a function where I can pass a array and use the key and values as the column and values of a table. for example:
$array = array("user"=>"joe", user_id="2");
I need the sql statement to be created like so:
select * from table where $key = $value;