A tool that converts a mySQL query to a Zend FrameWork query

Is there a web tool on the Internet that converts MySQL query to Zend FrameWork Query. that is, I type mySql Query and the tool Converts it to Zend FrameWork equivalent query

+5
source share
1 answer

You do not need a tool for this. In the Zend Framework Zend_Db component, you can:

$stmt = $db->query($sql);

If $sqlthis is a choice, you can get the data with:

$rows = $stmt->fetchAll();

Alternatively, ZF is just a PHP framework, so you have nothing to keep using PDOor mysqli.

+2
source

All Articles