Is the where clause is correct.......
$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."' AND where flag='1'";
I am getting this error after executing this statement.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\demonew\contractor_trash.php on line 220