Here is the code:
<form method="post" name="input" action="">
<label>StaffID:<br/> <input name="staffid" type="number"><br></label>
<label>Username:<br/> <input name="username" type="text" min="0"><br></label>
<label>Password:<br/> <input name="password" type="text" min="0"><br></label>
<input type="submit" name="submit" value="Add User">
</form>
<?php
$SID = $_POST['staffid'];
$UN = $_POST['username'];
$PW = $_POST['password'];
$conn = mysqli_connect("xxxxx.net", "999_ashtonb", "xxxxx", "2219658_ashtonb");
if($SID !=''||$UN !=''||$PW !=''){
$sql = "INSERT INTO staffusers(username, password, staffid) VALUES($UN, $PW, $SID)";
mysqli_query($conn, $sql);
echo "<br><br><span>User added successfully!</span>"; }
?>
I dont know what Im doing wrong please help.