Created
November 1, 2011 23:56
-
-
Save asgrim/1332315 to your computer and use it in GitHub Desktop.
Excerpts from GD_Config::set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$bind = array( | |
'key' => $key, | |
'value' => $value, | |
); | |
$where['key = ?'] = $key; | |
$db = Zend_Db_Table::getDefaultAdapter() | |
$db->update('configuration', $bind, $where); | |
// Zend_Db_Statement_Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = 'last_page_load')' | |
// I tried it with only this too: | |
$bind = array( | |
'value' => $value, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full function is here:
https://github.com/asgrim/godeploy/blob/develop/library/GD/Config.php#L89