$act = "1";
$query = mysqli_query($conn, "SELECT * FROM pp_ta WHERE Lic = '".$lic."' And WHERE active= '".$act."'");
Error 0You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE active= '1'' at line 1
Im thinking it has to do with quotes. Ive been tryng for 7 hours to figure it out..Any ideas?