Open maryamgh1988 opened 3 years ago
function post(request, response) { const data = request.body; const values = Object.values(data); db.query( "INSERT INTO users(username, location) VALUES($1, $2, $3)", values ).then(() => { response.redirect("/posts"); }); }
having input for age but not age argument for it in the function
having input for age but not age argument for it in the function