Jump to content

php error


alin19

Recommended Posts

i have 13 records for each line, but on count it outputs 26, am 13 undifined index, what is the problem here?

 

 

 

while ($query_afis_conturi=mysql_fetch_array($query_exec_conturi))
{
$inregistrari[]=$query_afis_conturi;
}
if (isset ($inregistrari)) 
{
$nr=count($inregistrari[0]);
foreach ($inregistrari as $rand)
$nr=count($rand);
for ($i=0;$i<$nr;$i++)
echo " ".$rand[$i]." ";
$i=0;
}
echo $nr; //26

Link to comment
https://forums.phpfreaks.com/topic/98962-php-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.