I am creating a very small database abstract layer, i want to send an array of variables that i obtained from a form, and generate an update sql statement, and eventually execute it. What do I put on the second to last line below? for example.
$table name = "user";
$username = $_post['username'];
$password = $_post['password'];
$email = $_post['email'];
$array = (username=>$username, password=>$password, email=>$email);
$query = "update $this->tableName".
$query = """" The value from the assc array in the form of database vlaue='form value'
$query = "WHERE condition";
i hope i made it clear enough. Thank you in advance