Welcome Guest, Not a member yet? Register   Sign In
$query->row_array() problem
#6

[eluser]vitoco[/eluser]
i don't use row_array() method with the optional parameter, but i think it's zero based, so

1 => 0
2 => 1
3 => 3

so .....
Code:
$uri_3 = '3';
    $pq_id = '15';
    
    $query = $this->db->get_where('poll_answer', array('pq_id' => $pq_id));

    // $uri_3 = 3 -> $uri_3 - 1
    $row = $query->row_array($uri_3 - 1);
    echo $row['id'] . ' - ';
    echo $row['answer'] . '<br>';

Saludos


Messages In This Thread
$query->row_array() problem - by El Forum - 11-09-2010, 12:21 PM
$query->row_array() problem - by El Forum - 11-09-2010, 12:51 PM
$query->row_array() problem - by El Forum - 11-09-2010, 12:55 PM
$query->row_array() problem - by El Forum - 11-09-2010, 01:51 PM
$query->row_array() problem - by El Forum - 11-09-2010, 01:58 PM
$query->row_array() problem - by El Forum - 11-09-2010, 02:08 PM
$query->row_array() problem - by El Forum - 11-09-2010, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB