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

change your query to:

$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."' AND flag='1'";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.