Undefined offset problème
1 message
• Page 1 sur 1
-

sff - WRInaute occasionnel

- Messages: 336
- Inscription: 2 Fév 2005
Undefined offset problème
Bonjour,
Dans le code de mon forum, j'ai plusieurs erreurs similaires. Les voici :
Undefined offset: 2 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 3 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 4 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 5 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 6 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 7 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Voici le code concerné :
Si quelqu'un pouvait m'aider, je le remercie d'avance.
Dans le code de mon forum, j'ai plusieurs erreurs similaires. Les voici :
Undefined offset: 2 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 3 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 4 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 5 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 6 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Undefined offset: 7 in /home/httpd/m/i/c/mick/www.rpgillusion.net/forum/admin/ajout_niv.php on line 37
Voici le code concerné :
- Code: Tout sélectionner
$req = $mysql->query("SELECT num FROM ".$mysql->pref."_niveaux ORDER BY num ASC");
$niv = Array();
while($n = mysql_fetch_assoc($req)) $niv[$n['num']] = $n['num'];
echo '<form id="niveau" method="post" action=""><div>
<p>Nom : <input type="text" name="nom"> <br><br>
Numéro : <select name="niv_num">
';
$e = 0;
for($i = 0; $i <= 9; $i++)
{
if($i != $niv[$i])
{
$e = 1;
echo '<option value="'.$i.'">'.$i.'</option>
';
}
}
echo '</select><br><br>';
Si quelqu'un pouvait m'aider, je le remercie d'avance.
1 message
• Page 1 sur 1
Lectures recommandées sur ce thème :
- [reglé]Problème Undefined offset
- Notice: Undefined index problème
- Google ajax api : Offset ?
- Undefined variable Site name
- Notice: Undefined index:
- msql_error() : undefined function
- jsp : Undefined variable
- undefined dans mes URLs pour GWT
- Undefined index.... : concerne champ email (RESOLU)
- afficher un flux rss : Call to undefined function
- Google Code Jam 2003 - 18-09-2003
- Référencement d'un forum phpBB - 09-05-2004
- Matt Cutts déclare la guerre au spamdexing en français (et autres langues) - 12-01-2006
- Comment éviter les contenus dupliqués (avec/sans le www) - 26-10-2005
- Commande site: sur Google et pages ignorées - 06-03-2007
- Du nouveau dans le Centre pour Webmasters de Live Search - 07-08-2008
- Comment résoudre les problèmes de Bourbon... - 27-06-2005
- Archive.org n'indexe plus rien depuis le 22 août 2008 ? - 19-11-2009
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité
