[eluser]GamingFusion[/eluser]
I am trying to get data to display from a database onto an page for my removeShow page but it wont.
After digging a bit i found that what ever code is below my getShows()function does not want to display. Whats wrong with it.
Heres the model function getShows()
Code:
//getShows Function
function getShows()
{
//Get Shows Data
$this->db->get('shows');
}
and heres my view page
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?=$title?></title>
</head>
<body>
<h1><?=$heading?></h1>
<?=$subheading?>
<?php foreach($query->result() as $row): ?>
<h2><b><?=$row->title?></b></h2>
<small>Directed by: <?=$row->director?></small>
<hr />
<h3><b>Show Times</b></h3>
<p><?=$this->typography->nl2br_except_pre($row->showtimes)?></p>
<h3><b>Cast</b></h3>
<p><?=$this->typography->nl2br_except_pre($row->cast)?></p>
<?php endforeach; ?>
</body>
</html>
and heres my controller
Code:
//removeShow Function
function removeShow()
{
$data['title'] = 'Theater 311 | Remove a Show';
$data['heading'] = 'Remove a Show';
$data['subheading'] = 'Pick a Show to Remove';
$data['query'] = $this->database->getShows();
$this->load->view('removeShow', $data);
}