Bug #79703 [NEW]: Unable to use $row['field_name']

From: Date: Mon, 15 Jun 2020 23:49:35 +0000
Subject: Bug #79703 [NEW]: Unable to use $row['field_name']
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227497@lists.php.net to get a copy of this message
From: preetha at tyk dot jp Operating system: Windows PHP version: 7.4.7 Package: PDO PgSQL Bug Type: Bug Bug description:Unable to use $row['field_name'] 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 bug report at https://bugs.php.net/bug.php?id=79703&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79703&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79703&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79703&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79703&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79703&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79703&r=support Expected behavior: https://bugs.php.net/fix.php?id=79703&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79703&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79703&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79703&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79703&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79703&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79703&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79703&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79703&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79703&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79703&r=mysqlcfg

« previous php.bugs (#227497) next »