Skip to content

Tag: mysql

default values in input form Modal

I just created a datatable collecting the values ​​from a wordpress database.- These values ​​must be loaded in a contact form within a modal. I am calling the modal from a button in the last column of each row of the datatable. I must predetermine the values ​​of the form fields with the information correspo…

Cannot union two Joints Laravel

Im trying to union 2 joins, but im getting weird error… I have “Clientes” -> means clients, and i got all the clients that they got registered in orders and news. In news table i got the cliente_id -> client_id , And in orders, i got the same, cliente_id -> client_id, In news i got …

How to compare tables from different mySQL databases with PHP?

I’m new to PHP as well as the field and have been tasked with finding inconsistencies amongst tables from different mySQL databases. Every table should be the same between databases (column names, column count), with the exception of the actual data held in it, which they are not. I will need to identif…

Laravel migrations won’t apply on MySQL (InnoDB)

Hello everyone, This is my first time posting ! I am running into a problem when applying laravel 8 migrations on my new web server. While trying to deploy my projet I’m unable to apply migrations and I’m not sure why. Below images of the error and my migration, i’m using the php artisan mig…

Insert into MySQL table if no row added within 5 minutes

I have a table which contains a column consisting of timestamps. I want to check if there is a new row within 5 minutes period of time. If not, then insert a new row or update the last row status column. I tried something like this: or insert into … but no success so far. I’m using PHP in WordPres…