0

What's wrong about this code?
($matches is a 2 dimensional array)

for($i = 0; $i < count($matches); $i++)
{
echo $matches[$i][0]->getName_team_home()."<br />";
}

It's not the actual code, it's just an example, originally it has to put the names of a team playing home in a table.

It only shows the first team, it doesn't seem like it goes any further than $i=0...

greets K?!

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by K?!
0

Problem solved, the code itself worked, the problem was that i made a mistake putting the data from the database into this 2 dimensional array, everything was placed in $matches[0]...

Greets, K?!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.