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?!

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?!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.