Welcome Guest, Not a member yet? Register   Sign In
Select View
#14

[eluser]ealonw[/eluser]
Brandon and Stuffradio!!! Thank you so much man.. Here is what I did for my controller... Adding the query line at the end and changing the order of my curly bracet to close with two at the bottom made the difference.. My view works now..

class Contact extends Controller {
function contact()
{
parent::Controller();
$this->load->library('database');
$this->load->helper(array('form', 'url'));
$this->load->scaffolding( 'usercomment');
}
function index()
{
// Produces: SELECT * FROM mytable
$query = $this->db->get('usercomment');
$this->load->view('contact_view',array('query'=>$query));
}
}

This case is now closed...


Messages In This Thread
Select View - by El Forum - 06-02-2008, 11:12 AM
Select View - by El Forum - 06-02-2008, 01:16 PM
Select View - by El Forum - 06-03-2008, 10:26 AM
Select View - by El Forum - 06-03-2008, 03:14 PM
Select View - by El Forum - 06-03-2008, 04:22 PM
Select View - by El Forum - 06-03-2008, 05:23 PM
Select View - by El Forum - 06-03-2008, 05:24 PM
Select View - by El Forum - 06-03-2008, 05:37 PM
Select View - by El Forum - 06-03-2008, 05:47 PM
Select View - by El Forum - 06-03-2008, 06:05 PM
Select View - by El Forum - 06-03-2008, 06:11 PM
Select View - by El Forum - 06-03-2008, 06:13 PM
Select View - by El Forum - 06-03-2008, 07:31 PM
Select View - by El Forum - 06-04-2008, 10:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB