Skip to content
Advertisement

fetchAll only fetches one row from two joined tables

I have a join of two tables. Actually the code and the fetching worked fine before I inserted :

JavaScript

and

JavaScript

But now it only fetches the first row even though there are two:

JavaScript

I used fetchAll and a foreach loop so I just don’t see why it is only fetching the first row. Maybe someone can help, thank you!

Advertisement

Answer

Your error here:

JavaScript

You using limit context, which it return back one row. Try you change limit 0,1 to limit 10.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement