title: SQL showing in place of web page
body: <p>I've copied a codeigniter website from my old computer to my new one, and copied the database.  When I navigate to the site in my localhost however, I just get SQL printed out</p>
  
  <pre><code>db-&gt;where($cell_name, $id); $this-&gt;db-&gt;delete($table_name); if (!is_array($tags)) { $tmp = array(); $tmp[] = $tags; $tags = $tmp; } if (!empty($tags)) { foreach($tags as $tag) { switch(gettype($tag)) { case 'integer': $this-&gt;db-&gt;set($cell_name, $id); $this-&gt;db-&gt;set('tag_id', $tag); $this-&gt;db-&gt;insert($table_name); break; case 'string': $tag = strtolower($tag); $results = $this-&gt;db-&gt;query('SELECT id FROM tag WHERE tag = \''.$tag.'\' LIMIT 1'); if ($results-&gt;num_rows() == 1) { $tag_id = $results-&gt;first_row()-&gt;id; } else { $this-&gt;db-&gt;set('tag', $tag); $this-&gt;db-&gt;set('permalink', url_title($tag, 'dash')); $this-&gt;db-&gt;insert('tag'); $tag_id = $this-&gt;db-&gt;insert_id(); } $this-&gt;db-&gt;set($cell_name, $id); $this-&gt;db-&gt;set('tag_id', $tag_id); $this-&gt;db-&gt;insert($table_name); break; } } } } function get_active($type, $id, $return_ids = true) { $ret = array(); switch($type) { case 'media': $table_name = 'media_tag'; $cell_name = 'media_id'; break; case 'post': $table_name = 'post_tag'; $cell_name = 'post_id'; break; } if (!$id) { $results = $this-&gt;db-&gt;query('SELECT tag.id, tag.tag, tag.permalink FROM '.$table_name.', tag WHERE tag_id = tag.id GROUP BY tag.id ORDER BY tag.tag'); if ($results-&gt;num_rows() &gt; 0) { foreach($results-&gt;result() as $data) { if ($return_ids) $ret[] = $data-&gt;id; else $ret[] = (object) array('id' =&gt; $data-&gt;id, 'tag' =&gt; $data-&gt;tag, 'permalink' =&gt; $data-&gt;permalink); } } } else { $results = $this-&gt;db-&gt;query('SELECT tag.id, tag.tag, tag.permalink FROM '.$table_name.', tag WHERE '.$cell_name.' = '.$id.' AND tag_id = tag.id ORDER BY tag.tag'); if ($results-&gt;num_rows() &gt; 0) { foreach($results-&gt;result() as $data) { if ($return_ids) $ret[] = $data-&gt;id; else $ret[] = (object) array('id' =&gt; $data-&gt;id, 'tag' =&gt; $data-&gt;tag, 'permalink' =&gt; $data-&gt;permalink); } } } return $ret; } }
  </code></pre>
  
  <p>Does anyone know if there's a simple reason for this - some setting I need to turn on in wamp for example, I'm completely at a loss, the files and database are identical on my old and new computers</p>