Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

MySQL:
PHP and MySQL Get a Little Closer
Feb 18, 2003 @ 20:57:29

For all of the MySQL users out there that are frustrated with having to use different functionality in PHP versus MySQL (different functions, different formats, etc.), then your ship might just have come in.

With this extension for your MySQL install, you can integrate PHP and MySQL even further. Now you can use the php() function just like any other MySQL built-in function. The first argument to php() is interpreted as PHP code. All of the arguments to PHP are stored in Array. For example, a piece of SQL with this module enabled could do something like: select s,php('strlen()',s) FROM test and get the string in column "s" and return the length for that string using the strlen() function in PHP.

It's a pretty cool extension, and would be *very* nice to have integrated into future MySQL versions, as well as developed further to allow PHP and MySQL to live in even more peace and harmony.

tagged:

Link:


Trending Topics: