Skip to content
Advertisement

insert into tables from another tables

Well, I trying insert into tables to another but I get this error;

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''lcl_user_agent' (user_agent, hitcount, click_timestap) SELECT visite_useragent,' at line 1]

This is my code;

JavaScript

I want insert into lcl_user_agent the visites from visite_useragent then I get the visite for block with $agent_id from the form

Advertisement

Answer

It looks like you’re messing up at the very end. It should be this form:

JavaScript

So maybe this is what you’re going for?

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