counthit.php3

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • counthit.php3

    Hi,

    i need php script for counting link hits. Like http://www.php-resource.de/inc/counthit.php3?LKID=1401
    I, acctualy, need counthit.php3 or simillar.
    Or redirection script like this http://www.bezze.no/redirect.php3?op=redir&sid=183&url=http%3A%2F%2Fwww.php.net

    Can anyone help me?

    Nico

    php-Entwicklung | ebiz-consult.de
    PHP-Webhosting für PHP Entwickler | ebiz-webhosting.de
    die PHP Marktplatz-Software | ebiz-trader.de

  • #2
    Have fun


    counthit.php3

    <?
    require ("login/login.inc.php3");
    $SSelect ="select Link from links where ID=$LKID";
    $resultMC=mysql_query ($SSelect ,$mysql_link);
    $row=mysql_fetch_array($resultMC);
    $url=$row["Link"];
    $CountHit = "update links set hits = hits + 1 where ID=$LKID";
    if (mysql_query ($CountHit,$mysql_link)) {
    Header( "Location: http://".$url);
    }


    ?>


    ---------------------------
    the PHP resource

    php-Entwicklung | ebiz-consult.de
    PHP-Webhosting für PHP Entwickler | ebiz-webhosting.de
    die PHP Marktplatz-Software | ebiz-trader.de

    Kommentar

    Lädt...
    X