mysql_query("INSERT INTO visitas (registro_id, numero) VALUES ($a, 1) ON DUPLICATE KEY UPDATE numero=numero+1");