Title: 3rd party code
Last modified: August 19, 2016

---

# 3rd party code

 *  [tripbr](https://wordpress.org/support/users/tripbr/)
 * (@tripbr)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/3rd-party-code/)
 * Hello!
 * I would like to know how can I include a piece of external code in the wordprpress.
 * I tried to add my code in the footer.php (wp-content/themes) but whit no suces..
 * This is the code that i need to add:
 *     ```
       <?php
       $site_id = "48";
       include('banner.php');
       ?>
       ```
   
 * But when I try to run my blog I got several MySQL errors. “banner.php” can’t 
   call an external MySQL database?

Viewing 1 replies (of 1 total)

 *  Thread Starter [tripbr](https://wordpress.org/support/users/tripbr/)
 * (@tripbr)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/3rd-party-code/#post-1445896)
 * No one?

Viewing 1 replies (of 1 total)

The topic ‘3rd party code’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [tripbr](https://wordpress.org/support/users/tripbr/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/3rd-party-code/#post-1445896)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
