I may be missing something, but can you not just update the second bindParam to: $stmt->bind_param('issss', $id, $name, $age, $name, $age)
?
If you don't know how the question marks work and are just copy/pasting code examples, I suggest you read up on mysqli or look into PDO.