|
|||
|
Hello, if I query my db (mysql) in this way it's work ! :
$db = Zend_Registry::get('db'); $sql = 'SELECT value1 FROM table WHERE id ='.$id; $result = $db->query($sql); $value = $result->fetchAll(); now, if I repeat the code 2 time it return me a generic error an not render the page: $db = Zend_Registry::get('db'); $sql = 'SELECT value1 FROM table WHERE id ='.$id; $result = $db->query($sql); $value1 = $result->fetchAll(); $sql = 'SELECT value1 FROM table WHERE id ='.$id; $result = $db->query($sql); $value2 = $result->fetchAll(); Why ? Thanks |
|
|||
|
This is my error : I repalce the path in this post with /......./
<br /> <b>Fatal error</b>: Uncaught exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY000]: Thanks Last edited by stvlinux : 10-14-2008 at 04:11 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|