I can't get a simple foreach loop going here! |
[eluser]Lone[/eluser]
Two notes: 1. Get your database code into a Model rather then in your Controller. 2. instead of using GLOBALS checkout the brand spanking new feature in the Session Class called flashdata You would add below to your 'submitpost' function Code: $this->session->set_flashdata('response', 'You just submitted a post I hope that worked LORF'); And the following to 'index' function using '$response' in the view Code: $data['response'] = $this->session->flashdata('response'); |
Messages In This Thread |
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 05:40 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:04 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:13 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:19 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 08:06 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 02:19 PM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 03:08 PM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 04:36 PM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:11 PM
I can't get a simple foreach loop going here! - by El Forum - 02-16-2008, 10:09 PM
I can't get a simple foreach loop going here! - by El Forum - 03-12-2008, 06:48 PM
|