Title: [Plugin: Exec-PHP] Plugin Exec-php: Can this be used to INSERT info in a table using Forms?
Last modified: August 19, 2016

---

# [Plugin: Exec-PHP] Plugin Exec-php: Can this be used to INSERT info in a table using Forms?

 *  [tinem](https://wordpress.org/support/users/tinem/)
 * (@tinem)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-exec-php-plugin-exec-php-can-this-be-used-to-insert-info-in-a-table-using-forms/)
 * Thanks a lot for this great plugin. I have succeeded getting info showed on a
   page and also getting info inserted in a table when using this code:
 * > <?php
   >  // Connect to the database require($_SERVER[‘DOCUMENT_ROOT’] . ‘/db_credentials.
   > php’); $conn = mysql_connect($db_server, $db_user, $db_pass); mysql_select_db(
   > $db_name, $conn);
   >  // prepare the SQL query
   >  $sql = “INSERT INTO folkebiblioteker (name, adresse)
   > VALUES(‘forsoeg’, ‘forsoeg’)”; // process the query $result = mysql_query($
   > sql) or die(mysql_error()); ?>
 * But can’t get it to functioning when I use Form code for inserting in the table.
   Isn’t this possible or do I need a Forms plugin and if yes which should I use,
   please?

Viewing 1 replies (of 1 total)

 *  Thread Starter [tinem](https://wordpress.org/support/users/tinem/)
 * (@tinem)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-exec-php-plugin-exec-php-can-this-be-used-to-insert-info-in-a-table-using-forms/#post-1050009)
 * Have NO ONE used this plugin for getting info into a database/table outside WordPress
   from a form? And if it can’t be done please tell me so I don’t waste more time
   on getting this to work, please.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Exec-PHP] Plugin Exec-php: Can this be used to INSERT info in
a table using Forms?’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [tinem](https://wordpress.org/support/users/tinem/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-exec-php-plugin-exec-php-can-this-be-used-to-insert-info-in-a-table-using-forms/#post-1050009)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
