Hi there,
Second topic!
How would I foreach to an array containing 5 elements? id, username, email etc. for each member there is, and how would that come together into a table?
I tried these ways:
foreach($id as $key1){
echo "<tr><td>$key1</td>"
foreach($key1 as $key2){
echo "<td>$key2</td>";
foreach($key2 as $key3{
echo "<td>$key3</td>
foreach $key3 as $key4
etc...
didn't work.
Then i tried doing result['nameofheader'] way. so instead of key1/2/3/4 i tried $result[id] as $result[email] etc.
That didn't work either.
Then i tried while($result = mysqli_fetch_array($query)){
echo "lots of td closing and opening and tr's on the side within tds: $result[id'] etc."
Didnt work..
Can someone give me a clue? =P
Thanks ^^