A database access class or function might be in order.
Written by Jeff Olen
To encourage native System i developers to make the switch to PHP, the Zend Core provides some data access methods that closely resemble native file access on the System i. If you're used to using SETLL, READ, CHAIN, and UPDATE in RPG, you may find these data access methods more intuitive than other alternatives. We applaud this effort to encourage RPG developers to use PHP, but there are some things you should think about before starting down this path.
The All England Lawn Tennis Club and IBM last week unveiled smart mobile applications designed to transform how fans access information and keep up with the action at Wimbledon 2009. Since 1990 IBM has worked with the Wimbledon team to send the captured score and statistical data around the world in an instant, keeping on-site broadcasters, media and tennis fans up to date with all the latest scores and statistics.