Data stored in a database successfully." . " Please browse your localhost php my admin" . " to view the updated data"; echo nl2br("\n$first_name\n $last_name\n " . "$gender\n $phone \n $email \n $city\n $department"); } else{ echo "ERROR: Could not insert the data values $sql. " . mysqli_error($conn); } // Close connection mysqli_close($conn); ?>