query($sql)) { echo '

'.$usr. ' was inserted.

Insert Another User

'; die(); } elseif ($mysqli->errno == 1062) { echo '

'.$usr. ' already exists.

Insert Another User

'; die(); } else { die("Error ($mysqli->errno) $mysqli->error"); } $mysqli->close(); } ?>

Insert User