i want to prove if the entry allready exists... as long as there are not all fields the same it should do a new entry in the db... can someone help me please???? cheers [code] $query="SELECT nombre, ultimocontacto, esde, vivido, conoces, asunto, anuncio, email, otraforma,pais FROM db2006_tmp WHERE nombre='$nombre'AND ultimocontacto='$ultimocontacto'AND esde='$esde'AND vivido='$vivido'AND conoces='$conoces'AND asunto='$asunto'AND anuncio='$anuncio'AND email='$email'AND otraforma='$otraforma'AND pais='$pais'"; $res =mysql_query($query); $found = mysql_num_rows($res); mysql_query(""); if ($found == 0) { mysql_query("INSERT INTO db2006 (nombre, ultimocontacto, esde, vivido, conoces, asunto, anuncio, email, otraforma, timestamp, pais) values ('$nombre','$ultimocontacto','$esde','$vivido','$conoces','$asunto', '$anuncio','$email','$otraforma','$timestamp','$pais');"); print "OK, saved...";} else { print "allready in list";}[/code]