0) { //OBTENER FECHA Y HORA $fecha=date("Y-m-d"); $hora=date("H:i:s"); //usuario //contrasena } $total_loginvalidid = 1; if ($total_loginvalidid==1) { $iduser = 0; $sqlinfo=mysql_query("SELECT DISTINCT ip as tot from visitas where fecha = '".(date('Y-m-d'))."'"); $total=0; while ($info=mysql_fetch_array($sqlinfo)) { $total = $total +1; } echo $total; } ?>