Try removing the training comma:
$stmt = $conn->prepare("Insert into user_info(first_name, last_name, age, height,
weight, email, cp_number, password) values (?, ?, ?, ?, ?, ?, ?, ?,)");
^
|
Chances are that's causing a problem at MySql which you aren't handling.