Skip to content

Tag: mysql

PDO changes query

I want to have result of my query as it was before I replaced db connection using PDO. How can I get the query as i t was before I implemented PDO? This is my query: $query = “SELECT `…

How to save multiple inputs in laravel in mysql database?

I have a ticketing system in laravel and my problem is I have multiple input fields in my site which are title fname lasname and that came from the inputs of how many passengers are included. Now I have two tables which are booking and booking_details. I want to save the Contact Details and Mobile Number (whi…

Mysql – how to do this sql

I have a “reviews” table with N records with 3 fields. Field ID, field name and score field. What I am trying to do is a query that returns me a grouping by the “score” field but with values ​​…