Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool That Convert mySQL Query To Zend FrameWork Query

Is there any Online Web Tool that Convert mySQL Query To Zend FrameWork Query. that is i type mySql Query and the Tool Convert it to Zend FrameWork equivalent Query

like image 288
Edward Maya Avatar asked Nov 05 '22 01:11

Edward Maya


1 Answers

You don't need a tool for this. Within Zend Framework's Zend_Db, component, you can do:

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

If $sql is a select, then you can retrieve the data with:

$rows = $stmt->fetchAll();

Alternatively, ZF is just a PHP framework, so there's nothing stopping you continuing to use PDO or mysqli directly.

like image 120
Rob Allen Avatar answered Nov 07 '22 23:11

Rob Allen