Visualizzazione dei risultati da 1 a 6 su 6

Discussione: numero risultati query

  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2006
    Messaggi
    51

    numero risultati query

    ciao, ho una query di questo tipo

    codice:
    $query = "SELECT * FROM $tab WHERE titolo LIKE '%$parola%' OR descrizione LIKE '%$parola%' LIMIT $primo, $per_page";
    come trovo il numero dei risultati ?

    Grazie mille

  2. #2

  3. #3

    Puoi ........

    Ciao.
    Puoi utilizzare un codice di
    questo tipo:
    $i = 0;
    while ($row = mysql_fetch_array($result, MYSQL_NUM))
    {
    $i++;
    }
    echo $i;
    Stammi bene.
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  4. #4

    mischia ............

    As above
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  5. #5
    Utente di HTML.it
    Registrato dal
    Feb 2006
    Messaggi
    51
    Grazie ragazzi :-)


    ciao

  6. #6

    Occhio ........

    Ciao.
    Te ne sarai accorto ma
    il metodo migliore è di
    nyo89 quando dicevo
    mischia stavo facendomi
    un giretto
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

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.