zend-db
Escaping input for LIKE in Zend_Db
What is the right way to escape text that is passed to query with LIKE pattern matching? The problem is that[详细]
2023-03-11 10:08 分类:问答Database number columns automatically casting to integers
Using the Zend_Db_Table_Abstract to retrieve table rows, my BIGINT fields are 开发者_StackOverflow中文版being automatically cast to integers. This is not required, and on 32 bit systems is obviously a[详细]
2023-03-09 20:41 分类:问答How do you work with a relational database in Zend Framework?
I\'m using the zend framework to write an app and I\'m having lots of problems getting my relational database models to work. I\'ve read the quickstart and the docs several times and I\'m still not su[详细]
2023-03-09 20:26 分类:问答ZF_DB: how to make simple select for two or more tables without join?
Example: SELECT `cat`.`id_catalog`, COUNT(parent.id_catalog) - 1) AS `level` FROM `tbl_catalog` AS `cat`, `tbl_catalog` AS `parent` WHERE (cat.`left` BETWEEN parent.`left` AND parent.`right`) GROUP B[详细]
2023-03-09 18:55 分类:问答Should dependent rows be fetched in the Model or the Controller?
Let me start with a simple example to show how my data is structured. There are four tables, Employee, Store, Department, and Employee_Department_Permissions.[详细]
2023-03-09 04:06 分类:问答How do left outer joins work on Zend framework
I have this SQL query: SELECT pais FROM pais LEFT OUTER JOIN users_has_pais ON pais.id = users_has_pais.pais_id WHERE users_has_pais.users_id = 100[详细]
2023-03-08 15:41 分类:问答How can I get Zend Db to return a rowset rather an array when performing a UNION query?
I have a result set that is the result of a MySQL UNION query. The code I am using to fetch the data is:[详细]
2023-03-08 04:44 分类:问答Why am I getting this strange error when working with findDependantRowset and Zend Framework?
PHP is throwing this error: Fatal error: Call to a member function getAdapter() on a non-object in C:\\Program Files\\Zend\\ZendServer\\share\\ZendFramework\\library\\Zend\\Db\\Table\\Row\\Abstract.[详细]
2023-03-08 00:15 分类:问答Request seems to be processed but server returns error page
since I am using the ZendFramework again, I started to "extend" the QuickStart application.[详细]
2023-03-07 20:40 分类:问答Zend_Validate_Db_RecordExists against 2 fields
I usualy use Z开发者_如何学Pythonend_Validate_Db_RecordExists to update or insert a record. This works fine with one field to check against. How to do it if you have two fields to check?[详细]
2023-03-07 13:20 分类:问答