I am trying to search for something in the database. However, this error keeps popping up. I was wondering if anyone could help me. Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
$host = '127.0.0.1';
$database = 'lab11';
$conn = mysql_connect($host);
$select = mysql_select_db($database, $conn);
$user = $_POST['user'];
$pass = $_POST['pass'];
if (! $conn)
die("Couldn't connect to MySQL");
$query = 'SELECT * FROM `security` LIMIT 0 , 30';
$result = mysql_query($query, $conn);
$row = mysql_fetch_assoc($result);
$a = array_search($user, $row);
echo $a;
mysql_close($conn);
echo 'Hi ';
echo $user. '.' ;
echo ' I can see your password.';
echo ' It is ';
echo $pass;
?>
</body>
</html>