• I’ve created a menu page inside the wordpress dashboard with a form with only a submit button, i’ve also created a file (sql.php inside the my theme folder) with a mysql data that needs to be addeded to the wordpress database.

    EDIT : i’ve got the following code :

    https://pastie.org/1652253

    When i press the submit button i get this message

    ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘CREATE TABLE IF NOT EXISTS wp_terms ( term_id bigint(20) unsigned NOT ‘ at line 3

    How do i fix this ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Insert data into mysql’ is closed to new replies.