semi-ambivalent wrote:
> All,
>
> I have a simple web page that inserts data into a table in 8.1.5 using
> PHP4. It's pretty amateurish but gets the job done. A few days ago I
> upgraded to 8.2 (this is on a FreeBSD system, and I used the port) but
> when I tried to use the web page this morning I got errors about:
>
> PHP Fatal error: Call to undefined function: pg_escape_string() in
> /usr/local/www/data-dist/some_dir/some_dir/dataInsert.php on line 9,
> referer: http://localhost/some_dir/some_dir/dataEnter.php
That means that the 'pg_escape_string' function doesn't exist (it's not
*that* cryptic). Do you have postgres support in php?
Create a php info page:
<?php
phpinfo();
?>
view it in a browser... there should be a big "postgresql" section - if
there isn't, that's the problem..
As others have suggested, maybe you need to update the php-pgsql library
as well.
--
Postgresql & php tutorials
http://www.designmagick.com/