Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » different results in queries
Re: different results in queries [message #626 is a reply to message #625] Tue, 13 February 2007 08:58 Go to previous messageGo to previous message
stephenboey is currently offline  stephenboey
Messages: 54
Registered: January 2007
Member
Yep, I did that.


// get all children of this node
$this->sql_select = 'role_id';
$this->sql_from = 'mnu_role';
$where = "role_id_snr='".$role_id."'";
$children_rowdata = $this->_dml_getData($where);

Assuming if two rows were returned.
"TESTING"
"TESTING2"

I refer to array returned explicitly
$children_rowdata[0]['role_id'] //value is "TESTING"

$children_rowdata[1]['role_id'] //value is "" should be "TESTING2" correct?
Im new to php, Very Happy is this the correct way to refer to a 2nd row?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: dml_updateSelection
Next Topic: not able to search 'Task Id'
Goto Forum:
  


Current Time: Fri Aug 02 10:23:32 EDT 2024

Total time taken to generate the page: 0.01928 seconds