Skip to content
Advertisement

Tag: join

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 : and But now it only fetches the first row even though there are two: 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! Answer

Use Laravel Eloquent joining

Hello I want to retrieve only rows of quizzes that the student didn’t take yet When he completes a quiz the variable done in QuizStudent table is going to become 1 Quiz table My relationships: …

Joined table not returning any results

I successfully joined tables in another part of my code so I followed the same pattern but this time it is not returning any result and I don’t understand why. Here are the tables I am trying to …

Advertisement