I have a scenario where I want to fetch records from my database table using SQL NOT operator and in the condition it doesn't negate two or more conditions but one; e.g
$sql1 = mysql_query("Select * from `".$dbTable17."` where `Dept`='$dept' AND NOT `Remark`='Error' ORDER BY `Date` ASC")or die("Error!~".mysql_error());
I assume you understand that the variables are already declared.
So, it doesn't fetch the records and I need a way to do it inside my while()
loop construct.