[PHP] PostgreSQL + PHP + SQL warning messages

[PHP] PostgreSQL + PHP + SQL warning messages

Post by Martin A. Marque » Sat, 27 Jan 2001 05:35:49



El Jue 25 Ene 2001 16:36, Evelio Martinez escribi:

Quote:> Hi!

> Is there any way to get the equivalent sqlca.sqlcode value of informix
> in PostgreSQL from php ?

> I would like to use the sqlcode to print the messages in Spanish.

The problem is that informix puts in an array (sort of) all the info about
the last query. What sort of information would you like? Last insert? You
have an pg_getlastoid() function.
Hope it helps.

Saludos...:-)

--
System Administration: It's a dirty job,
but someone told I had to do it.
-----------------------------------------------------------------

Santa Fe - Argentina            http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------

 
 
 

1. PostgreSQL + PHP + SQL warning messages

--------------1931E03C9159CBC3D6A1E949
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi!

Is there any way to get the equivalent sqlca.sqlcode value of informix
in PostgreSQL from php ?

I would like to use the sqlcode to print the messages in Spanish.

Thanks in advance

--
Evelio Martnez
Testanet. Dept. desarrollo software.
Av. Reino de Valencia, 15 - 5
46005 Valencia (Spain)
Tel: +34 96 395 90 00
Fax: +34 96 316 23 19

--------------1931E03C9159CBC3D6A1E949
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<br>Hi!
<p>Is there any way to get the equivalent sqlca.sqlcode value of informix&nbsp;
in PostgreSQL from php ?
<p>I would like to use the sqlcode to print the messages in Spanish.
<p>Thanks in advance
<br>&nbsp;
<pre>--&nbsp;
Evelio Mart&iacute;nez
Testanet. Dept. desarrollo software.
Av. Reino de Valencia, 15 - 5
46005 Valencia (Spain)
Tel: +34 96 395 90 00
Fax: +34 96 316 23 19</pre>
&nbsp;</html>

--------------1931E03C9159CBC3D6A1E949--

2. Stupid Question.

3. [PHP] RPMs for PHP accessing PostgreSQL via ODBC over RedHat

4. SYSTEMS ANALYSTS

5. PHP+MySQL vs. PHP+PostgreSQL

6. oddball select

7. Warning: SQL error: , SQL state in SQLConnect in test.php on line 5

8. crosstab query

9. [PHP] Re: psql with PHP question

10. RV: [PHP-DEV] PHP 4.0 Bug #5656 Updated: ifx_pconnect : E [SQLSTA

11. PHP/MySQL vs PHP/Informix performance

12. PHP and DB2 - anyone done anything with PHP?

13. Php question Php Questions !!