Witam,
Pobieram sobie dane w ten sposób. Funkcja pobierająca dane znajduje się w klasie w osobnym pliku.
Samo zapytanie działa bez problemów. W samej funkcji dane są pobierane. Funkcja echo mysql_num_rows($result); zwraca 1 row, tyle pownna.
Nie wiem co to za błąd. Po stronie skryptu wyświetlającego wywala mi Resource id#6. Poproszę o małą pomoc...
{
$this->id_adv[$counter++] = $this->row['ID_'];
$this->object_name[$counter++] = $this->row['_NAME'];
$this->object_type[$counter++] = $this->row['_TYPE'];
$this->region[$counter++] = $this->row['REGION'];
$this->city[$counter++] = $this->row['CITY'];
$this->area[$counter++] = $this->row['AREA'];
$this->street[$counter++] = $this->row['STREET'];
$this->house_nr[$counter++] = $this->row['HOUSE_NR'];
$this->adv_phone1[$counter++] = $this->row['PHONE1'];
$this->adv_phone2[$counter++] = $this->row['PHONE2'];
$this->adv_fax[$counter++] = $this->row['FAX'];
$this->adv_email[$counter++] = $this->row['EMAIL'];
$this->website[$counter++] = $this->row['WEBSITE'];
$this->self_description[$counter++] = $this->row['SELF_'];
$this->availibility[$counter++] = $this->row['AVAILABILITY'];
$this->rooms[$counter++] = $this->row['ROOMS'];
$this->price_person_from[$counter++] = $this->row['_PERSON_FROM'];
$this->price_person_to[$counter++] = $this->row['_PERSON_TO'];
$this->night_places[$counter++] = $this->row['_PLACES'];
$this->bathroom[$counter++] = $this->row['g'];
$this->tv[$counter++] = $this->row['d'];
$this->sat[$counter++] = $this->row['s'];
$this->radio[$counter++] = $this->row['f'];
$this->beach_tools[$counter++] = $this->row['_w'];
$this->fridge[$counter++] = $this->row['g'];
$this->kettle[$counter++] = $this->row['j'];
$this->kichen_anex[$counter++] = $thisrow['d_ANEX'];
$counter++;
}