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;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…