I need to ask, what is "it"?
What kind of data do you expect?
A single row returned from your query?
Multiple rows?
$this->data = mysql_fetch_array($this->result){
return $this->data;
}
What this does is assign the array result of 1 row of the given query into the member variable $data, then returns $data
If you want to get all the rows returned, it would be something like:
$result_array = array();
while ($row = mysql_fetch_array($this->result)) {
$result_array[] = $row;
}
return $result_array;
this would return the rows, each as an array, as an array.
Then you might assign $this->data to this array of arrays.