# Page with unique php script for database content

**URL:** <https://forum.ghost.org/t/page-with-unique-php-script-for-database-content/19622>\
**Category:** Developer help\
**Created:** [January 21, 2021, 3:19am UTC](https://forum.ghost.org/t/page-with-unique-php-script-for-database-content/19622 "2021-01-21T03:19:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuseadmi](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fuseadmi](https://forum.ghost.org/u/fuseadmi)\
**Post date:** [January 21, 2021, 3:19am UTC](https://forum.ghost.org/t/page-with-unique-php-script-for-database-content/19622/1 "2021-01-21T03:19:09Z")

</div>

Newbie ghost user here. Environment is via [ghost.org](http://ghost.org) and my own unique url [FuseTrader](https://fusetrader.com) hosted by Bluehost.

I’d like to have a page which runs a unique php script to access database driven information. The database would be updated periodically via a cron job to pull market data from outside sources and perhaps manual data which I enter.

I’m assuming this could be handled with an html card or custom code injection for that specific page, but how do I connect to a database and where would the database have to be located? When I go to my cPanel and view the files & databases, I cannot see anything associated with the ghost application. So I’m obviously confused on how it is setup.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![pieter](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pieter/32/11499_2.png) [@pieter](https://forum.ghost.org/u/pieter)\
**Post date:** [January 21, 2021, 9:54am UTC](https://forum.ghost.org/t/page-with-unique-php-script-for-database-content/19622/2 "2021-01-21T09:54:56Z")

</div>

You do realize that Ghost is a Node.js CMS and not written in PHP?

I suppose you can create a database yourself on Bluehost and run a custom PHP script there. Then you could indeed display the outcomes of the script by using an HTML card with an iFrame.

---

<div class="post-metadata">

**Author:** ![fuseadmi](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fuseadmi](https://forum.ghost.org/u/fuseadmi)\
**Post date:** [January 21, 2021, 1:59pm UTC](https://forum.ghost.org/t/page-with-unique-php-script-for-database-content/19622/3 "2021-01-21T13:59:35Z")

</div>

Thanks for the reply. I knew it wasn’t PHP bc it didn’t look familiar, but PHP isn’t really the point; the point is simply to interact with a database of my own creation. If Node.js can do that then maybe I should go down that route. I guess the source of my confusion is about my setup, I’ll do some research.

I’ll also look into the html card w/ an iframe solution, thanks again!

---

<div class="post-metadata">

**Author:** ![fuseadmi](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fuseadmi](https://forum.ghost.org/u/fuseadmi)\
**Post date:** [January 21, 2021, 2:17pm UTC](https://forum.ghost.org/t/page-with-unique-php-script-for-database-content/19622/4 "2021-01-21T14:17:07Z")

</div>

After spending 10 minutes on [w3schools.com](http://w3schools.com) it appears Node.js can interact fairly easily with MySQL. Now we’re getting to heart of the matter here… am I able to connect to a database hosted at my custom url and inject the Node.js code necessary to do so? I’m sure this will bring up security questions as well, and if it helps I only need to be able to read from the database not necessarily write.
