I am trying to learn postgresql with psql - using FreeBS D7.0,
postgresql 8.3.3 php 5.2.6, apache 2.2.9
How can I echo or print on screen the results; all I get from this code
Resource id #3
which is the field names run together
I am expecting to see several long text sentences.
Here is the snippet and the connection does work and the database is
there and functioning.
$db = pg_connect("host=localhost port=5432 dbname=med user=med
die("Could not open connection to database server");
// generate and execute a query
$query = "SELECT description FROM glossary_item WHERE
$result = pg_query($db, $query) or die("Error in query: $query.
" . pg_last_error($db));
// Print result on screen
What am I doing wrong?
pgsql-php by date
|Next:||From: Spiegelberg, Greg||Date: 2008-07-30 16:29:15|
|Subject: Re: display query results|
|Previous:||From: Andrew McMillan||Date: 2008-06-26 11:54:13|
|Subject: Re: newbie issues with PDO / stored procedures|