<?php
for($i=0; $i<sizeof($top_name); $i++)
{
for($i=0; $i<sizeof($top_name); $i++)
{
echo "<tr><td>".$sub_name[$i]."</td><td>".$sub_diff[$i]."</td></tr>";
echo "<tr><td>".$top_name[$i]."</td><td>".$top_diff[$i]."</td> <td>".$top_size[$i]."</td></tr>";
}
}
?>
Error :
Notice: Undefined offset: 2 in C:\xampp\htdocs\TRY\data.php on line 28
Notice: Undefined offset: 2 in C:\xampp\htdocs\TRY\data.php on line 28
I'm trying to fetch arrays and arranging them in table but it is giving that error.
Please solve this. Thanks in advance...