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

    Ordinare alfabeticamente i valori di un form

    In questo form di ricerca per "GENERE" si elencano i vari generi in ordine sparso.-
    Come posso farli elencare in ordine alfabetico ?

    Grazie a chi mi saprà rispondere
    Jack

  2. #2
    Codice PHP:
    ORDER by 'Nick' ASC 
    ??
    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

  3. #3
    ho dimenticato questo:

    <?
    $query = "SELECT DISTINCT `GENERE` FROM `articoli`";
    $esegui = mysql_query ($query,$db) or die ("Connessione non riuscita");
    $option="<select name=\"select_genere\">";
    while ($array = mysql_fetch_array ($esegui)){
    $array[GENERE] = stripslashes($array[GENERE]);
    $option.="<option value=\"$array[GENERE]\">$array[GENERE]</option>";
    }
    $option.="</select>";
    echo "$option";
    ?>

  4. #4
    Codice PHP:
    <? 
    $query 
    "SELECT DISTINCT `GENERE` FROM `articoli`ORDER by 'GENERE' ASC";
    cos'è sto pezzo?
    Codice PHP:
    $esegui mysql_query ($query,$db) or die ("Connessione non riuscita"); 
    Codice PHP:
    $option="<select name=\"select_genere\">"
    while (
    $array mysql_fetch_array ($esegui)){ 
    $array[GENERE] = stripslashes($array[GENERE]); 
    $option.="<option value=\"$array[GENERE]\">$array[GENERE]</option>"

    $option.="</select>"
    echo 
    "$option"
    ?> 
    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

  5. #5
    Ti ringrazio, sei stato gentilissimo

  6. #6
    prego!
    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

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 © 2024 vBulletin Solutions, Inc. All rights reserved.