you dont need:
$row = mysql_fetch_array ($result, MYSQL_NUM)
as your deleting information from the database and not getting information (SELECT)
also you can add this onto the end of your mysql_query line:
$result = @mysql_query($query) or die(mysql_error());
also if you use the or die part then you do not need the if else statement below...
Heres an updated version for you to ponder at:
<?php
if (isset($_POST['submit'])) {
require_once ('./mysql_connect.php');
$id = intval($_POST['userid']);
$un = addslashes($_POST['username']);
$e = addslashes($_POST['email']);
$query = "DELETE FROM user WHERE user_id='$id' OR username='$un' OR email='$e' ";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array ($result, MYSQL_NUM)
echo "User Deleted succesfully";
}
?>
<form>
<p class="style1">Delete User_id: <input name="id" type="text" value="userid" maxlength="5"></p>
<p class="style1">Delete Username: <input name="username" type="text" value="username" maxlength="5"></p>
<p><span class="style1">Delete Email Address:</span><input name="email" type="text" value="email" maxlength="5"></p>
<p><input name="Delete" type="submit" value="Delete"></p>
</form>
Just one more thing, on the second code you posted at the end of your $query you had a parse error as you forgot to use a close single quote [ ' ] for the end of your last email='$e'