
09/07/2008, 10:15
|
 | | | Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 17 años Puntos: 52 | |
Respuesta: contador por click no cuenta...!!!! No se, prueba asi
<?php
$comprobarIP = "SELECT hitIP FROM hits where hitIP = '$hitIP'" ;
$res = mysql_query($comprobarIP) or die(mysql_error());
$resultado = mysql_fetch_array ($res);
$cuantos = count ($resultado);
if ($cuantos == 0 ) {
mysql_query("UPDATE hits SET hitTotal = hitTotal + 1") or die(mysql_error());
} ;
?> |