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

    Errore Undefined offset sul rendering del browser

    Salve a tutti ....

    ho questo piccolo problema ... sto cercando di creare un menù dinamico a partire da un array, ma il browser mi dà questo errore strano

    Error in my_thread_global_end(): 1 threads didn't exit PHP Notice: Undefined offset: 5 in C:\Inetpub\wwwroot\akroma\functions.php on line 12 PHP Notice: Undefined offset: 5 in C:\Inetpub\wwwroot\akroma\functions.php on line 12
    anche se poi il menù viene ricreato correttamente

    questo di seguito è il codice che crea il menù:

    <?php

    $nav = array("Home","Galleria","Curriculum","Link","Conta tti");

    // funzione per creare il menu di navigazione
    function navigation()
    {
    for ($id = 0; $id <= count($nav); $id++)
    {
    echo "[*]<a href=\"index.php?id=".$nav[$id]."\">".$nav[$id]."</a>";
    }
    }
    ?>

    Grazie per l' aiuto
    Hutton

    "Una tela bianca, offre infinite possibilità."

  2. #2
    ehm.. la linea che dà errore è quella dove c'è la funzione di echo ...
    Hutton

    "Una tela bianca, offre infinite possibilità."

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.