I am executing the following query:
$query = "SELECT * FROM default_quote_cat";
$result = mysql_query($query);
$data = array();
while($row = mysql_fetch_object($result)) {
$data[] = $row;
}
$nineth = $data[9];
how can I access the this object values individually?
doing a var_dump returns the following:
object(stdClass)(4) {
["dqc_id"]=>
string(2) "10"
["dqc_name"]=>
string(3) "Gas"
["dqc_comment"]=>
string(11) "Cost of gas"
["dqc_display"]=>
string(1) "1"
}
say I want to print "dqc_id" or "dqc_comment" how do I do that?
Serge