Re: postgresql database access failure
| From: | e-letter | Date: | Sun, 01 May 2011 20:28:18 +0000 |
| Subject: | Re: postgresql database access failure | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312609@lists.php.net to get a copy of this message | ||
The file was changed:
... $value=pg_fetch_result($query,1,1);
echo 'all files' . var_dump($value);
...
The resultant web page produces:
bool(false) all files
The php file was changed again:
... $value=pg_fetch_result($query);
echo 'all files' . var_dump($value);
...
The resultant web page produces:
NULL all files
The error log shows:
...PHP Warning: pg_fetch_result(): supplied argument is not a valid
PostgreSQL result resource...
The objective is to learn how to extract data from a database and
print to a web browser, but not much progress made so far..!