sql.php
来自「一款可以和GOOGLE媲美的开源统计系统,运用AJAX.功能强大. 无色提示:」· PHP 代码 · 共 34 行
PHP
34 行
<?php/** * Executes a SQL query on the DB and returns the Zend_Db_Statement object * If you want to fetch data from the DB you should use the function Piwik_FetchAll() * * See also http://framework.zend.com/manual/en/zend.db.statement.html * * @param string $sqlQuery * @param array Parameters to bind in the query, array( param1 => value1, param2 => value2) * @return Zend_Db_Statement */function Piwik_Query( $sqlQuery, $parameters = array()){ return Zend_Registry::get('db')->query( $sqlQuery, $parameters);}/** * Executes the SQL Query and fetches all the rows from the database * * @param string $sqlQuery * @param array Parameters to bind in the query, array( param1 => value1, param2 => value2) * @return array (one row in the array per row fetched in the DB) */function Piwik_FetchAll( $sqlQuery, $parameters = array()){ return Zend_Registry::get('db')->fetchAll( $sqlQuery, $parameters );}function Piwik_FetchOne( $sqlQuery, $parameters = array()){ return Zend_Registry::get('db')->fetchOne( $sqlQuery, $parameters );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?