![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/06/2004, 11:59
|
![Avatar de Rnsto](http://static.forosdelweb.com/customavatars/avatar3237_1.gif) | | | Fecha de Ingreso: marzo-2002 Ubicación: Puerto Vallarta, Mexico
Mensajes: 204
Antigüedad: 22 años, 11 meses Puntos: 0 | |
Bueno, pues ya lo consegui de la siguiente manera.
<?
mysql_select_db("phpads");
$sql = "SELECT * FROM adclicks WHERE bannerID LIKE $row_banners[bannerID]";
$result = mysql_query($sql) or mysql_die();
$total_register=mysql_num_rows($result);
echo "<b>Total clicks for this link:</b> ".$total_register;
?>
Ahora, si alguien me puede decir si existe alguna mejor forma ó codigo mas simple para hacerlo, se los agradeceria. |