query($sql)){ echo "success"; }else{ echo "error: " . $conn->error; } ?>