From:
Operating system: Irrelevant
PHP version: Irrelevant
Package: *Database Functions
Bug Type: Feature/Change Request
Bug description:SQL Like Requests For Arrays
Description:
------------
It seems to me that it would make sense to at least apply the basic
features of the SQL ANSI standard to php arrays that are NOT derived from
another database.
To start with, it could support most of the features found within SELECT,
INSERT, UPDATE and DELETE at least from a single table.
Support could be added later for joins and other complex SQL commands.
Mimic the mysql commands in php. Suppose an array exists called $array.
$qry = php_query("SELECT * FROM $array where name = "Bill");
php_fetch_array($qry);
I believe such a feature would add to the overall ease of use of php,
especially for newer programmers and people coming from other languages
that are already familiar with SQL commands.
--
Edit bug report at http://bugs.php.net/bug.php?id=52352&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52352&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52352&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52352&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52352&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52352&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52352&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52352&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52352&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52352&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52352&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52352&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52352&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52352&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52352&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52352&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52352&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52352&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52352&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52352&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52352&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52352&r=mysqlcfg