title: Database Announcements Table - Add Excutable Code Within
body: <p>I have a database containing over 1,000 item information and I am now developing a system that will have this check the API source via a regular Cron Job adding new entries as they come. Usually, but not always the case, when a new item is released, it will have limited information, eg; Image and name only, more information like description can sometimes be initially withheld.</p>
  <p>With this system, I am creating a bulletin to let everyone know new items have been released, so like most announcements, they get submitted to a database, however instead of submitting static content to the database for the bulletin, is it possible to submit something which will be executed upon the person loading that page and that bulletin data is firstly obtained then the secondary code within run?</p>
  <p><strong>, For example,</strong> within the database could read something like the following</p>
  <pre><code>&lt;p&gt;Today new items were released!&lt;/p&gt;
  &lt;?php $item_ids = &quot;545, 546, 547, 548&quot;; ?&gt;
  </code></pre>
  <p>And then on the page, it will fetch the latest known information from the other database table for items &quot;545, 546, 547, 548&quot;</p>
  <p>Therefore, there would be no need to go back and edit any past entries, this page would stay somewhat up-to-date dynamically.</p>