Skip to content

Tag: sql

Unknown column ‘stockout_details.purchi’ in ‘on clause’

i’m using this query but i found this error Unknown column ‘stockout_details.purchi’ in ‘on clause’ Answer You need to include the column in the subquery: Note that I replaced the table aliases with more manageable aliases and qualified all column names. That said, I’d be s…

Laravel select records with pivot table

I have a little problem with eloquent. I have 3 tables. Users, phrases, and phrase_user. phrase user contains columns: id, phrase_id, user_id I need to select phrases with pivot table for example. This action with SQL will be like this… This is my index function in controller I also have written these f…

SQL data displayed from a table to a textbox

I currently have a search screen to display results. A user can click on a link in that search screen to open a new window and view additional information. Currently i’m able to display the additional information as a table however I want to display the data in text boxes. Currently my code to display t…

How to fix “Undefined property: stdClass::$gamme” [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I am new in the Laravel this is my first app. I have 2 tables: art gamme I …