Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. isky
    3. Post
    I

    isky

    @isky

    • Profilo
    • Chi segue 0
    • Da chi รจ seguito 0
    • Discussioni 1
    • Post 1
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    1
    Post
    0
    Visite al profilo
    0
    Da chi รจ seguito
    0
    Chi segue
    User Newbie

    Post creati da isky

    • Estrarre i dati in base al giorno

      Devo organizzare on orario con arrivi e partenze ed
      alcuni orari ci sono solo alcuni giorni della settimana
      da principiante con lo script che segue mi sono
      imbrigliato da solo

      $XGIORNO = "$_POST[GIORNO]";
      $XMESE = "$_POST[MESE]";
      $XANNO = "$_POST[ANNO]";
      $DATA = $XANNO."-".$XMESE."-".$XGIORNO;
      $NUMGIORNO = date('w', mktime(0, 0, 0, $XMESE, $XGIORNO, $XANNO));

      SELECT *,
      TIME_FORMAT(ORARIO,'%H:%i') as XORARIO
      FROM $tabella
      where MEZZO like '%$TIPOMEZZO%'
      and VETTORE like '%$TIPOVETTORE%'
      and PARTENZA like '%$ORIGINE%'
      and ARRIVO like '%$DESTINAZIONE%'
      and LU = '$NUMGIORNO' (il campo contiene 1 oppure ๐Ÿ˜Ž
      and MA = '$NUMGIORNO' (il campo contiene 2 oppure ๐Ÿ˜Ž
      and ME = '$NUMGIORNO' (il campo contiene 3 oppure ๐Ÿ˜Ž
      and GI = '$NUMGIORNO' (il campo contiene 4 oppure ๐Ÿ˜Ž
      and VE = '$NUMGIORNO' (il campo contiene 5 oppure ๐Ÿ˜Ž
      and SA = '$NUMGIORNO' (il campo contiene 6 oppure ๐Ÿ˜Ž
      and DO = '$NUMGIORNO' (il campo contiene 0 oppure ๐Ÿ˜Ž
      and DATAINIZIO >= '$DATA'
      and DATAFINE <= '$DATA'

      Help me
      Grazie

      postato in Coding
      I
      isky