title: Edit database won't display when including wordpress header/footer on page
body: <p>I am using a wordpress site, but for a part of the site, I have decided that I will manually connect to the database and basically bypass wordpress for editing the database and retrieving results.</p>
  
  <p>the problem is, when I include the WP header and footer, I am getting a blank page, viewing source gives an error although I have being unable to understand it.</p>
  
  <p>This is the source code displayed for the page:</p>
  
  <p><code>&lt;!DOCTYPE html&gt;
  &lt;!--[if IE 6]&gt;
  &lt;html id="ie6" &lt;br /&gt;
  &lt;font size='1'&gt;&lt;table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'&gt;
  &lt;tr&gt;&lt;th align='left' bgcolor='#f57900' colspan="5"&gt;&lt;span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'&gt;( ! )&lt;/span&gt; Fatal error: Call to undefined function language_attributes() in C:\wamp\www\thurston\wp-content\themes\twentyeleven\header.php on line &lt;i&gt;15&lt;/i&gt;&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th align='left' bgcolor='#e9b96e' colspan='5'&gt;Call Stack&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th align='center' bgcolor='#eeeeec'&gt;#&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Time&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Memory&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Function&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Location&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;1&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;0.0013&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='right'&gt;388104&lt;/td&gt;&lt;td bgcolor='#eeeeec'&gt;{main}(  )&lt;/td&gt;&lt;td title='C:\wamp\www\thurston\wp-content\themes\twentyeleven\editdb.php' bgcolor='#eeeeec'&gt;..\editdb.php&lt;b&gt;:&lt;/b&gt;0&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;2&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;0.0024&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='right'&gt;438352&lt;/td&gt;&lt;td bgcolor='#eeeeec'&gt;require( &lt;font color='#00bb00'&gt;'C:\wamp\www\thurston\wp-content\themes\twentyeleven\header.php'&lt;/font&gt; )&lt;/td&gt;&lt;td title='C:\wamp\www\thurston\wp-content\themes\twentyeleven\editdb.php' bgcolor='#eeeeec'&gt;..\editdb.php&lt;b&gt;:&lt;/b&gt;3&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;&lt;/font&gt;
  </code></p>
  
  <p>Sorry for the jumble but that's all that is displayed.</p>
  
  <p>The code for the actual page is this (linked to it as the code function on this site would not work):</p>
  
  <p><a href="https://dl.dropbox.com/u/10062971/editdb.php" rel="nofollow">https://dl.dropbox.com/u/10062971/editdb.php</a></p>
  
  <p>And the wordpress header:</p>
  
  <p><a href="https://dl.dropbox.com/u/10062971/header.php" rel="nofollow">https://dl.dropbox.com/u/10062971/header.php</a> </p>
  
  <p>Adding to the database and then displaying the information from the database works on the main page, it's just clicking edit and going to the editdb.php page where the problems are.</p>
  
  <p>Does anyone have any ideas?</p>