Welcome Guest, Not a member yet? Register   Sign In
Storing items in a session array as the page loads
#2

[eluser]verynewtothis[/eluser]
I think logically speaking, something like this should work:
Code:
if ($this->session->userdata('ad_array')):
    $ar = $this->session->userdata('ad_array');
endif;

$this->db->where_not_in($ar);
$Q1 = $this->db->get('adTable')->result(); // 1 or more result whatever is your logic

//You will have some logic to select ads to display and store them in array
$ar[] = Q1->myAdID;

$this->session->set_userdata('ad_array' , $ar);


Messages In This Thread
Storing items in a session array as the page loads - by El Forum - 08-14-2009, 10:01 AM
Storing items in a session array as the page loads - by El Forum - 08-14-2009, 10:33 AM
Storing items in a session array as the page loads - by El Forum - 08-17-2009, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB