Beste mensen,
ik zit met het volgende probleem.
ik heb 2 array's aangemaakt
PHP
<?php
$klasgenoten = array("Jan", "Piet", "Klaas", "Kees", "Karel", "Peter", "freek", "wim", "baas", "bham");
$emailadressen = array("[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]", "[email protected]");
?>
nu moet ik ze weergeven in een tabel dit wilt me nog lukken
hier het stukje waar ik de array's opvraag:
PHP
<?php
foreach($klasgenoten as $namen){
echo "<table border=\"1\" width=\"80\"><tr><td>". $namen . "</td></tr></table>";
}
foreach($emailadressen as $mails){
echo "<table border=\"1\" width=\"200\"><tr><td>". $mails . "</td></tr></table>";
}
?>
Wat ik nu wil is dit:
het eerste stukje foreacht($klasgenoten as $namen)
..............
maar nu wil ik ook dat hij in dat stukje ook dit pakt
foreach($emailadressen as $mails)
want de bedoeling is dat ik ze in een tabel naast elkaar krijg.
en hoe ik het nu heb krijg ik twee apparte tabellen.
ik hoop dat jullie snappen wat ik bedoel
en ik hoop dat iemand mij kan helpen
P.S. ik heb het hele php boek al doorgebladerd.