Handle Quotes In MySQL Query Using Zend Framework

When a value that needs to be inserted into database, contains a mix of   ‘ and ”  , problem will arise with normal MySQL query. We can handle the situation when using plain PHP with this solution. But if we are using Zend Framework the solution will be – $db = Zend_Db::factory(‘PDO_MYSQL’, $params);$sql =… Continue reading Handle Quotes In MySQL Query Using Zend Framework

Opning phtml thtml ctp Files In Dreamweaver

To open and read the .phtml (Zend Framework) .thtml or .ctp (CakePHP) files in Dreamweaver just like the .php files follow these steps – 1. Open the file – C:\Program Files\Macromedia\{Dreamweaver Folder}\Configuration\DocumentTypes\MMDocumentTypes.xml (Replace C: with the drive name where your OS is installed) 2. Search “php,php3,php4,php5” (It will be line # 75). After php5 add… Continue reading Opning phtml thtml ctp Files In Dreamweaver