Welcome Guest, Not a member yet? Register   Sign In
unserialize query results not working
#1

[eluser]exodus7[/eluser]
I seem to be having some trouble using unserialize in my view. When I use the following code, im getting a blank list generated with no data :ahhh:

If I change unserialize to a simple echo statement, it displays the serialized data fine. Anyone have an idea?


Controller:
Code:
$this->surveymodel->q15($_POST);
$data['q15'] = $this->surveymodel->q15('survey_results');    
$this->load->view('survey/results', $data);
Model:
Code:
function q15()
{
$q15 = $this->db->query('SELECT q15 FROM survey_results');
return $q15->result();
}
View:
Code:
<ol>
&lt;?
foreach ($q15 as $row)
{
echo "<li>";
   unserialize ($row->q15);
echo "</li>";  
}
?&gt;  
              
</ol>

Thank you


Messages In This Thread
unserialize query results not working - by El Forum - 01-15-2008, 10:49 AM
unserialize query results not working - by El Forum - 01-15-2008, 10:52 AM
unserialize query results not working - by El Forum - 01-15-2008, 11:33 AM
unserialize query results not working - by El Forum - 01-15-2008, 12:26 PM
unserialize query results not working - by El Forum - 01-15-2008, 12:38 PM
unserialize query results not working - by El Forum - 01-15-2008, 12:48 PM
unserialize query results not working - by El Forum - 01-15-2008, 01:05 PM
unserialize query results not working - by El Forum - 01-15-2008, 01:19 PM
unserialize query results not working - by El Forum - 01-15-2008, 01:34 PM
unserialize query results not working - by El Forum - 01-15-2008, 01:40 PM
unserialize query results not working - by El Forum - 01-15-2008, 03:14 PM
unserialize query results not working - by El Forum - 01-15-2008, 08:52 PM
unserialize query results not working - by El Forum - 01-18-2008, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB