Bug #79703 [Opn]: Unable to use $row['field_name']
| From: | preetha at tyk dot jp | Date: | Mon, 15 Jun 2020 23:51:37 +0000 |
| Subject: | Bug #79703 [Opn]: Unable to use $row['field_name'] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227498@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79703&edit=1
ID: 79703
User updated by: preetha at tyk dot jp
Reported by: preetha at tyk dot jp
Summary: Unable to use $row['field_name']
Status: Open
Type: Bug
Package: PDO PgSQL
Operating System: Windows
PHP Version: 7.4.7
Block user comment: N
Private report: N
New Comment:
I am using Postgre12 with PHP
****************************
c:\xampp\php>php -v
PHP 7.4.6 (cli) (built: May 12 2020 11:38:54) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2020-06-15 23:49:35] preetha at tyk dot jp
Description:
------------
<td><?=$rows2['id']?></td>
gives me the error
Notice: Undefined index: id in C:\xampp\htdocs\test\index.php on line 225
But
<td><?=$rows2['0']?></td> works
Expected result:
----------------
<td><?=$rows2['id']?></td> should give the actual data from the table
field 'id'
Actual result:
--------------
<td><?=$rows2['id']?></td> does not work at all
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79703&edit=1