Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/11/2004, 11:13
crapulaR
 
Fecha de Ingreso: noviembre-2004
Mensajes: 3
Antigüedad: 19 años, 5 meses
Puntos: 0
mira esto es lo que tengo textualmente....

function auspicial()
{
$link=mysql_connect("localhost","usuario","contras eña");
mysql_select_db("tabla",$link);
return $link;
}


mt_srand((double)microtime()*1000000);
$imgs = dir('ban');
while ($file = $imgs->read()) {
if (eregi("gif", $file) || eregi("jpg", $file)) {
$imglist .= "$file ";
}
}
closedir($imgs->handle);
$imglist = explode(" ", $imglist);
$a = sizeof($imglist)-2;
$random = mt_rand(0, $a);
$image = $imglist[$random];
$asin = explode(".", $image);
//$fotos=
$link=auspicial();
$result=mysql_query("select * from links_banner where nombre='$image'"); // desc limit $noticias_mostrar",$link);
$result2=mysql_query("UPDATE links_banner set hits=hits+1 where nombre='$image'");

while($row = mysql_fetch_array($result)) {

$hits = $_REQUEST['hits'];
if(empty($_REQUEST['hits'])){$hits = "1";
}

$content = "<center><a target=\"_blank\" href=\"". $row["url"]. "?hits=1\"><img src=\"ban/$image\" border=\"0\" alt=\"\"></a><br><br></center>" ;

}



QUIERO QUE CUANDO HAGAN CLICK EN ESA IMAGEN ME SUME UNO MAS