Hej, to już przegięcie, w kodzie nie mam nic, tylko print i nic się nie wyświetla :\ dlaczego?
http://newagenet.nstrefa.pl/others/i.html
<html> <body> <?php print("start"); $db = pg_connect("host=localhost dbname=newage_moto2 user=newage_moto2 password=moto2"); $query = "SELECT * FROM login"; $result = pg_query($query); if ($result) { print("ok"); } else { print("error"); } while($myrow = pg_fetch_assoc($result)) { print($myrow["id"]); } ?> </body> </html>
<?php class ServerSideService { function ServerSideService () { // KONSTRUKTOR include('../settings.php'); include('postgresql.php'); @$GLOBALS["PostgreSQL"] = new postgresql($SQLhost, $SQLuser, $SQLpassword, $SQLdataBase); } function query () { // zapytanie do bazy danych [ query ] return $GLOBALS["PostgreSQL"] -> query_select("SELECT * FROM login"); } } ?>