Has anyone built Functions (or Stored Procedures) in PostgreSQL that can 
return a dataset?  I would like to contain my login in PostgreSQL (like 
I did on M$-SQL) and call it from my PHP script (like I did with ASP).

$rs = pg_exec($db, "someprocname")
while ($rec = pg_result_object($rs, $row)) {
        // Stuff

Now "someprocname" should be on my PostgreSQL server and containts a 
SELECT statement whos results I want to send back to PHP for the $rs 
var.  Has anyone got this working?  I've tried all kinds of good stuff 
but can't get it to happen...


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to