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
Use a foreach loop to iterate over the array and get key and value. Like this:
foreach
$sql=''; foreach($array as $key=>$value){ $sql = sprintf("select * from table where %s = %s",$key,$value); print $sql; }