Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Czysta strona z datagrid Structures
styx
post 24.03.2006, 15:22:59
Post #1





Grupa: Zarejestrowani
Postów: 138
Pomógł: 3
Dołączył: 21.11.2005

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


Osatnio zainstalowałem pakiet Structures_Datagrid. Skopiowałem exampla uruchamiam stronę, a tam nic, kompletnie nic?

example
  1. <?php
  2.  
  3. require 'Structures/DataGrid.php';
  4. require 'Structures/DataGrid/DataSource.php';
  5.  
  6. $dg =& new Structures_DataGrid();
  7.  
  8. // Get my data
  9. include('connect.php');
  10. $result = mssql_query('SELECT * FROM transakcja');
  11.  
  12. // Bind to DataGrid
  13. $data = Structures_DataGrid_DataSource::create($result);
  14. $dg->bindDataSource($data);
  15.  
  16. // Print the DataGrid
  17. $dg->render();
  18.  
  19. ?>


Zainstalowane pakiety:

Console_Table 1.0.3 stable
DB 1.6.2 stable
HTML_Common 1.2.2 stable
HTML_Table 1.6.1 stable
PEAR 1.3.2 stable
Pager 2.3.6 stable
Structures_DataGrid 0.6.3 beta
XML_Parser 1.0.1 stable
XML_RPC 1.1.0 stable
XML_Util 1.1.1 stable


php Version 4.3.10-16


--------------------
"Istotne problemy naszego życia nie mogą być rozwiązane na tym samym poziomie myślenia, na jakim byliśmy kiedy je tworzyliśmy". A.Einstein
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 12.06.2025 - 17:01