| From: | "Camarao, Wagner (v)" <Wagner(dot)Camarao(at)bowneglobal(dot)com(dot)br> |
|---|---|
| To: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
| Subject: | (mysql to postgresql) in php functions |
| Date: | 2003-04-10 20:54:39 |
| Message-ID: | 6849495BC0DED61188D500080245C6D1A37286@exchange-rio.bowneglobal.com.br |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi. I am migrating a site database from MySQL to PostgreSQL.
First I just changed the function calls and then I got the error
message that PHP was not compiled with PostgreSQL support.
Ok, so I recompiled the PHP as necessary and now the problem is that
there was a function being used, called mysql_select_db();, that there is
none to use with PostgreSQL instead of it.
I really dont know if it is necessary to use the select_db function
after the connection to the database. But I think so, because when I try to
execute a query (without running the select_db function) I get the error
message:
"Fatal error: Call to undefined function: pg_query() in
/path/file.php on line 123"
Anybody can help me? Although this is not a php mail list?! :-)
Tks,
Wagner
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-04-10 20:55:51 | Re: Corrupt index |
| Previous Message | Tom Lane | 2003-04-10 20:51:12 | Re: Pg and Stunnel |