Title: Insert data into mysql
Last modified: August 19, 2016

---

# Insert data into mysql

 *  [slaifer](https://wordpress.org/support/users/slaifer/)
 * (@slaifer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/insert-data-into-mysql/)
 * 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 :
 * [http://pastie.org/1652253](http://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)

 *  Thread Starter [slaifer](https://wordpress.org/support/users/slaifer/)
 * (@slaifer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/insert-data-into-mysql/#post-1965947)
 * updated first post with more info

Viewing 1 replies (of 1 total)

The topic ‘Insert data into mysql’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [slaifer](https://wordpress.org/support/users/slaifer/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/insert-data-into-mysql/#post-1965947)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
