Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 12 su 12
  1. #11
    Utente di HTML.it L'avatar di blekm
    Registrato dal
    Jun 2004
    Messaggi
    8,310
    funzionava tutto a suo tempo, ora che ci sono andato a rimettere le mani non funziona più a dovere.
    Non ho fatto modifiche, e se ne ho fatto me ne sono dimenticato. Ma sono certo al 99,9% che non ho fatto cambiamenti. Fatto sta che con questo codice

    Codice PHP:
    SELECT productid, class, str_to_date(class, '%W %D %M %Y') as 
    data FROM xcart_classes WHERE class LIKE '%$Month%' ORDER BY data 
    ottengo questi risultati(per ogni mese ho fatto print_r per vedere il contenuto dell'array, e sotto trovate la stampa della mia funzione.
    Perchè funziona solo con June? Considerando che dentro il db tutte le date di tutti i mesi sono salvate nel solito formato, ad esempio Tuesday 29th May 2007.

    May (non funzionante)

    Codice PHP:
    Array
    (
        [
    270] => Tuesday 29th May 2007
        
    [269] => Tuesday 15th May 2007
        
    [271] => Thursday 31st May 2007
        
    [318] => Tuesday 22nd May 2007
        
    [319] => Monday 21st May 2007
    )
    Tuesday 29th May 2007
    Tuesday 15th May 2007
    Thursday 31st May 2007
    Tuesday 22nd May 2007
    Monday 21st May 2007 
    June (unico funzionante)

    Codice PHP:
    Array
    (
        [
    272] => Friday 1st Jun 2007
        
    [273] => Monday 4th Jun 2007
        
    [274] => Friday 8th Jun 2007
        
    [275] => Tuesday 12th Jun 2007
        
    [276] => Friday 15th Jun 2007
        
    [277] => Tuesday 19th Jun 2007
        
    [278] => Friday 22nd Jun 2007
        
    [279] => Monday 25th Jun 2007
        
    [280] => Thursday 28th Jun 2007
    )
    Friday 1st Jun 2007
    Monday 4th Jun 2007
    Friday 8th Jun 2007
    Tuesday 12th Jun 2007
    Friday 15th Jun 2007
    Tuesday 19th Jun 2007
    Friday 22nd Jun 2007
    Monday 25th Jun 2007
    Thursday 28th Jun 2007 
    July (non funzionante)

    Codice PHP:
    Array
    (
        [
    281] => Tuesday 3rd Jul 2007
        
    [291] => Tuesday 31st Jul 2007
        
    [290] => Monday 30th Jul 2007
        
    [289] => Friday 27th Jul 2007
        
    [288] => Tuesday 24th Jul 2007
        
    [287] => Monday 23rd Jul 2007
        
    [286] => Friday 20th Jul 2007
        
    [285] => Tuesday 17th Jul 2007
        
    [284] => Monday 16th Jul 2007
        
    [283] => Friday 13th Jul 2007
        
    [282] => Friday 6th Jul 2007
        
    [336] => Thursday 5th Jul 2007
    )
    Tuesday 3rd Jul 2007
    Tuesday 31st Jul 2007
    Monday 30th Jul 2007
    Friday 27th Jul 2007
    Tuesday 24th Jul 2007
    Monday 23rd Jul 2007
    Friday 20th Jul 2007
    Tuesday 17th Jul 2007
    Monday 16th Jul 2007
    Friday 13th Jul 2007
    Friday 6th Jul 2007
    Thursday 5th Jul 2007 
    August (non funzionante)

    Codice PHP:
    Array
    (
        [
    293] => Monday 6th Aug 2007
        
    [302] => Tuesday 28th Aug 2007
        
    [301] => Monday 27th Aug 2007
        
    [300] => Friday 24th Aug 2007
        
    [299] => Wednesday 22nd Aug 2007
        
    [298] => Monday 20th Aug 2007
        
    [297] => Friday 17th Aug 2007
        
    [296] => Monday 13th Aug 2007
        
    [295] => Friday 10th Aug 2007
        
    [294] => Thursday 9th Aug 2007
        
    [303] => Friday 31st Aug 2007
    )
    Monday 6th Aug 2007
    Tuesday 28th Aug 2007 
    Monday 27th Aug 2007 
    Friday 24th Aug 2007 
    Wednesday 22nd Aug 2007 
    Monday 20th Aug 2007 
    Friday 17th Aug 2007 
    Monday 13th Aug 2007 
    Friday 10th Aug 2007 
    Thursday 9th Aug 2007 
    Friday 31st Aug 2007 
    spero che qualcuno mi possa dare una mano, nonostante siamo al giorno dopo ferragosto...
    Il portale sul turismo a Lucca

    Siti web Lucca

    Vendo Tex a colori di Repubblica (primi 100 numeri) - info in pvt.

  2. #12
    Utente di HTML.it L'avatar di blekm
    Registrato dal
    Jun 2004
    Messaggi
    8,310
    non importa più, dovrò scrivere nel database la data nel formato YYYYMMDD. C'è stato un cambio di programma.
    Il portale sul turismo a Lucca

    Siti web Lucca

    Vendo Tex a colori di Repubblica (primi 100 numeri) - info in pvt.

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