Tool That Convert mySQL Query To Zend FrameWork Query

前端 未结 1 1831
春和景丽
春和景丽 2021-02-06 13:32

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

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 13:52

    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.

    0 讨论(0)
提交回复
热议问题