Results 1 to 6 of 6

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jan:2004
    Posts: 106

    php JS hit counter

    ,

    HTML , . . , .. .

    : (35) (16) (27) ....

    php js , . - , !

    !


    : , ?
    Last edited by fobu; 8th October 2007 at 05:23.

  2. #2
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    PHP.

    PHP Code:
    $id = (int)$_GET["id"];
    $insertVisit mysql_query("UPDATE visits SET visitCount + 1 WHERE `Id` = '$id') or die(mysql_error()); 
    : Id (INT) visitCount (INT)


  3. #3
    ****** koshera's Avatar
    Join Date: Sep:2003
    Location: Sammamish, WA, USA
    Posts: 1,507
    , .
    , -. .
    :
    PHP Code:
    session_start();
    if(!
    $_SESSION['count']){
      
    $_SESSION['count'] = 0;
      
    $_SESSION['count'] += 1
    }else

     
    $_SESSION['count'] += 1

    - .
    Thre are 10 kinds of people in this world - people who know binary, and those who don't.
    -, .

  4. #4
    Registered User
    Join Date: Jan:2004
    Posts: 106
    . . , .
    : <?php $id=1; include('click/showviewcount.php'); ?>
    , .

    ?
    Last edited by fobu; 9th October 2007 at 06:59.

  5. #5
    Dark tranquillity
    Join Date: Aug:2006
    Location: Sofia
    Posts: 796
    ?

    @fobu - , ,
    Core 2 Duo E6600 @ 3.15GHz + Zalman 9500| Gigabyte 965P DS-4 | Asus EAX1950Pro + Samsung 226BW | 4 x 1GB DDR-2 800 A-Data | CM Elite 330 + Fortron BS 500W | X-Fi Fatal1ty Pro | Samsung HD400LJ 400GB | NEC AD-7170A | MS Natural KB + A4 X7 G100 Game pad | Mouse A4 X750 BF

  6. #6
    ****** koshera's Avatar
    Join Date: Sep:2003
    Location: Sammamish, WA, USA
    Posts: 1,507
    Quote Originally Posted by metalhead117 View Post
    ?
    -
    Fobu, . . , . id- . :
    select count_column from table_links where id = link_column_id.
    php , , , .
    Thre are 10 kinds of people in this world - people who know binary, and those who don't.
    -, .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |