Title: Insert data from another database in the loop
Last modified: August 19, 2016

---

# Insert data from another database in the loop

 *  [Deetimba](https://wordpress.org/support/users/deetimba/)
 * (@deetimba)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/insert-data-from-another-database-in-the-loop/)
 * Hi Forum,
 * I just wondered if there is anybody out there who may has an idea how to do the
   following:
    In the loop I want to call a particular product from the DB to show
   a small summary of the product and its details in a table like manner.
 * How it should work: When I edit a new post I take the auto generated ID and put
   it in the DB (product table). The loop should then get the usual WP post stuff(
   title, author). Further is should get the ID from the WP post, open and connect
   to the database and the table and call some particular attributes from the DB
   product with the same ID as the WP post.
 * I am new to SQL and PHP and hope that maybe somebody can gimme a hint how to 
   implement that.
 * Merry Christmas and happy holidays.
    Dee

The topic ‘Insert data from another database in the loop’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * 0 replies
 * 1 participant
 * Last reply from: [Deetimba](https://wordpress.org/support/users/deetimba/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/insert-data-from-another-database-in-the-loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
