Notice: Undefined offset: 1

Résolu
t671 Messages postés 1476 Date d'inscription   Statut Membre Dernière intervention   -  
t671 Messages postés 1476 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

J'ai le message Notice: Undefined offset: 1 (puis 2 puis 3) dans ce script :

sort($tonarray);

for($i=0; $i<=3; $i++)
{
  if ($tonarray[$i]['conjoint'] != "") 
  { 
     $query4 = 'SELECT id,num_indiv,famille,nom,prenom,date_naissance,date_dc FROM individus WHERE num_indiv LIKE '.$tonarray[$i]['conjoint'].'';   
     $result4 = mysql_query($query4) or die(mysql_error());
     $row4 = mysql_fetch_array($result4);

sur la ligne if ($tonarray[$i]['conjoint'] != "")
En php4 cela passait bien. Mais en php5, c'est pas pareil .............. :(

2 réponses

jordane45 Messages postés 38486 Date d'inscription   Statut Modérateur Dernière intervention   4 752
 
0
t671 Messages postés 1476 Date d'inscription   Statut Membre Dernière intervention   11
 
Merciiiii !!!!
0