Bug #15255 Updated: problem in structure control
| From: | php-bugs at lists dot php dot net | Date: | Fri, 01 Mar 2002 05:00:05 +0000 |
| Subject: | Bug #15255 Updated: problem in structure control | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1376@lists.php.net to get a copy of this message | ||
ID: 15255
Updated by: php-bugs@lists.php.net
Reported By: jerco@chile3000.com
-Status: Feedback
+Status: No Feedback
Bug Type: PostgreSQL related
Operating System: Linux rh 7.2
PHP Version: 4.1.1
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-01-28 10:44:12] sander@php.net
Can you try a vardump() on $ren? What's the output?
Reclassified.
------------------------------------------------------------------------
[2002-01-28 10:21:43] jerco@chile3000.com
Hi..
I'm a user off Postgresql, and the problem is with a
a data type (decimal).
-------
$query_resultren=pg_exec ($connection,$queryren);
$ren=pg_result($query_resultren, 0, 0);
$number_rows_queryren = pg_numrows($query_resultren);
//echo "ren=$ren<br>";
if (!$ren)
{
--------
Ok, the problem is in "$ren" the result is 0.0, and for me 0.0=0 (or
no), i tried:
if ($ren=0)
if ($ren==0)
if ($ren==0.0)
if ($ren=="0.0")
but nothing!!!
My solution in this case is:
-------
$query_resultren=pg_exec ($connection,$queryren);
$ren=""""round""""(pg_result($query_resultren, 0, 0));
$number_rows_queryren = pg_numrows($query_resultren);
//echo "ren=$ren<br>";
if (!$ren)
{
--------
and this work...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15255&edit=1