Hi I want to display all tables in a while loop. $id=0; while($id<=7) { echo "The name is " . $name[$id] . " and the URL is " . $url[$id] . "<br />"; $id++; } PHP: Where it sais "=7" I want the number to be maximum value. Meaning that if I have 7 rows it will say 7 and if I add 3 new rows it will automatically increase to 10.. How can I do this? Thanks in advance
$length = count($name); while ($i <= $length) { PHP: Another solution - try to use foreach cycle foreach ($name as $table_id => $table_name) { echo "The name is " . $table_name . " and the URL is " . $url[$table_id] . "<br />"; } PHP: