i have a function to do a simple insert, but am trying to make the method more robust by passing an array. and this is the array i pass into it:
$for
Instead of bind_param (which in my mind is confusing at all times), just do:
$stmt->execute($values);
You can also get rid of your loop by using array_keys() and array_values()