Code showing on every content page I'm pretty new to Drupal but have take my company's half-baked site from the server and gotten a working instance of it in my local wamp stack working.  The only problem is that it seems on every page there is a section of code being inserted:

&lt;?php
if ( isset($entity-&gt;field_job_id['und'][0]['safe_value'] )) {
   $job_id = $entity-&gt;field_job_id['und'][0]['safe_value'] ;
   $application_link_form = '
&lt;form action="/careers/application" method="POST"&gt;
    &lt;input type="hidden" name="job_id" value="' . $job_id . '" /&gt;
    &lt;input type="submit" value="Apply online" class="job-application-link" /&gt;
&lt;/form&gt;';
   print $application_link_form;
}
 ?&gt;


This is showing a section of this code plus an "Apply Online" button at the top of each section of content.  It doesn't seem to matter what the content type of the content and the site which I imported all the files and db from has no such code - not even when I view source is there anything even commented out.  Hopefully this code gives you some context as to where this is ocurring - it comes immediately following this series of divs:

&lt;div class="region region-content"&gt;
  &lt;div id="block-system-main" class="block block-system"&gt;
    &lt;div class="content"&gt;
      &lt;div class="contextual-links-region"&gt;&lt;div class="panel-display panel-1col clearfix" id="job"&gt;
        &lt;div class="panel-panel panel-col"&gt;
           &lt;div&gt; 
              &lt;div class="panel-pane pane-dsc" &gt;
                 &lt;div class="pane-content"&gt;


In any case, I cannot figure out where to find this code in order to get rid of it.  I'm not seeing any modules relating to this, etc.  And I just am baffled as to why it would start showing up after importing from a site that doesn't display this.  If anyone can think of any possibilities, please let me know!
If it's not in the source, it's in the DB. At a guess, this is code that someone entered using the PHP filter, but the PHP filter is not active so it's showing up as text.

As to where it is in the DB, there's many possibilities. I'd use brute force to search the DB in its entirety. (That's easy for me to say as I have a copy of SQLyog to hand. I'm sure there are other tools that provide this functionality, though: I think PhpMyAdmin has it.)

Addendum: looks like it's in a custom pane, so the table panels_pane is the most likely culprit. Ideally you want to find how it's getting inserted onto the page. Do you have the module Panels Everywhere enabled?