Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Błąd przy pobieraniu danych z merlinx getPlainData()
mariusz1985
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 8.12.2008

Ostrzeżenie: (0%)
-----


Witam otóż mam taki problem niewiem czemu wywala mi błąd w pliku ponieważ wszystko jest brane z gotowej instrukcji merlina i teoretycznie powinno działać.

Fatal error: Call to a member function getPlainData() on a non-object in ../hotel.php on line 3

otóż mam biblioteke ep3gate.class.php
oraz plik hotel.php

  1. <?php
  2. require_once('ep3gate.class.php');
  3. $out = $ep3gate->getPlainData('?sp=3&a=2&sd=*1&ed=*22');
  4. print '<table>';
  5. foreach($out['V'] AS $row)
  6. {
  7. print '<tr><td rowspan="2" ><img src="'.$row['hotelimage'].'"
  8. width="100px" height="50px" /></td>';
  9. print '<td valign="top"><strong>'.$row['htlName'].'</strong>';
  10. for ($i=1; $i<=$row['htlCat']; $i++)
  11. print '<img src="images/star1.gif" />';
  12. print '<br/>'.$row['htlCountry'].' /
  13. '.$row['htlRegion'].'</td></tr>';
  14. '<tr><td>'.$row['htlRoomDesc'].','.$row['htlSrvDesc'].'</td>';
  15. print '<td align="right"><a href="'.$row['URL'].'">od
  16. <strong>'.$row['minprice'].'</strong> PLN</a></td></tr>';
  17. }
  18. print '</table>';
  19. ?>

i podczas wywpołąnia tego pliku odrazu sie wysypuje na lini 3

czy ktoś może wie w czym tkwi problem (IMG:style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 00:26