Visualizzazione dei risultati da 1 a 8 su 8
  1. #1

    Funzione numerica crescente

    Salve a tutti


    mi servirebbe che io abbia una funzione in un link, e che ogni volta che clicco quindi sullafunzione mi esce un numero in sequenza crescente!


    Esempio:
    Clicco 1° volta: mi esce 1
    Clicco 2° volta: mi esce 2
    Clicco 3° volta: mi esce 3
    etc etc....

    P.S. La funzione deve funzionare con utenti dioferenti, quindi se è un altro utente a cliccare la seconda volta uscirà 2, dopo ad unaltro 3 etc....

    grazie ciao
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    NON TI ho capito ti serve un contatore di click ???

  3. #3
    in pratica sarebbe un contatore di click che mi stamnpi ad ogni utente il numero del suo click!
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  4. #4
    Mi sa che devi usare le sessioni ....

    Ci provo in locale se riesco a farlo e ti replico ...

  5. #5
    vabeh ho fatto bene così??

    Codice PHP:
    <?php 
    include('count.php');
    $sum $count 1;
    $filename "count.php";
    $testo "<?\$count=".$sum.";?>";
    $handle fopen($filename'w+'); 
    fwrite($handle$testo);
    fclose($handle);

    echo
    "il tuo num è: $sum"?>
    e count.php
    Codice PHP:
    <?php $conut=0?>
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  6. #6
    Originariamente inviato da Manuelandro
    vabeh ho fatto bene così??

    Codice PHP:
    <?php 
    include('count.php');
    $sum $count 1;
    $filename "count.php";
    $testo "<?\$count=".$sum.";?>";
    $handle fopen($filename'w+'); 
    fwrite($handle$testo);
    fclose($handle);

    echo
    "il tuo num è: $sum"?>
    e count.php
    Codice PHP:
    <?php $conut=0?>

    così il codice mi va abbastanza bene....solo che non ho capito come aumentare ad ogni click la variabile in count.php!

    aiutatemi...grazie!
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  7. #7
    nada?
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  8. #8
    Utente di HTML.it L'avatar di hyb
    Registrato dal
    Aug 2003
    Messaggi
    424
    a parte le variabili, che succede se 10 utenti cliccano e lo script cerca di aprire 10 volte il file e scriverlo? :master:

    Ma anche due utenti in contemporanea.
    C'è chi si mette degli occhiali da sole, per avere più carisma e sintomatico mistero.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.