I want to solve these two errors:
mysql_query() expects parameter 2 to be resource, object given in C:\wamp\www\trial\search.php on line 46
mysql_fetch_array() expects parameter 1 to be resource, null given in C:\wamp\www\trial\search.php on line 67
<html>
<head>
<title>
</title>
</head>
<body>
<form method="post" action="">
<div align="center">
<table>
<tr>
<td>
<select name="month">
<option value=""></option>
<option value="january">jan</option>
<option value="febuary">feb</option>
<option value="march">mar</option>
<option value="april">apr</option>
<option value="may">mar</option>
<option value="june">jun</option>
<option value="july">jul</option>
<option value="august">aug</option>
<option value="september">sep</option>
<option value="october">oct</option>
<option value="november">nov</option>
<option value="december">dec</option>
</select>
</td>
<td>
<input type="submit" name="submit" value="submit">
</td>
</tr>
</table>
</div>
<div align="center">
<?php
include 'config.php';
if(isset($_POST['month']))
{
echo $month=$_POST['month'];
$query=mysql_query("select empname,tasktype,month,W1,W2,W3,W4,W5 from task_update where month ='$month'",$conn);
//$getmonth=mysql_query("select * from empname where empname='arjun'",$conn);
}
?>
<table>
<thead>
<th>sno</th>
<th>empname</th>
<th>tasktype</th>
<th>month</th>
<th>W1</th>
<th>W2</th>
<th>W3</th>
<th>W4</th>
<th>W5</th>
</thead>
<?php
$i=1;
while($disp=mysql_fetch_array($getmonth))
{
?>
<tr>
<td>$i</td>
<td>$disp['empname']</td>
<td>$disp['tasktype']</td>
<td>$disp['month']</td>
<td>$disp['W1']</td>
<td>$disp['W2']</td>
<td>$disp['W3']</td>
<td>$disp['W4']</td>
<td>$disp['W5']</td>
</tr>
<?php
$i++;}
?>
</table>
</form>
</body>
</html>