本文整理匯總了PHP中medoo::info方法的典型用法代碼示例。如果您正苦於以下問題:PHP medoo::info方法的具體用法?PHP medoo::info怎麽用?PHP medoo::info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類medoo
的用法示例。
在下文中一共展示了medoo::info方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: info
/**
* @return array
*/
public function info()
{
$rt = array('write' => $this->_writer->info(), 'read' => NULL);
if (empty($this->_reader)) {
$rt['read'] = $rt['write'];
} else {
$rt['read'] = $this->_reader->info();
}
return $rt;
}
示例2: medoo
<?php
/**
* Created by PhpStorm.
* User: KeenSting
* Date: 2015/6/27
* Time: 13:51
*/
require_once './Resource/medoo.php';
/*
* 連接數據庫
*/
echo "_______________\n";
$database = new medoo('meetingmanage');
print_r($database->info());
/*
* 查看錯誤信息
*/
echo "_______________\n";
$database->select("bccount", array("user_name", "email"), array("user_id[<]" => 20));
var_dump($database->error());
/*
* 查看上一條query
*/
echo "_______________\n";
$last_user_id = $database->insert("test", array("user" => "fooa", "email" => "foo@bar.com", "id" => 25, "pwd" => "smart", "name" => array("en", "fr", "jp", "cn")));
echo $database->last_query();
/*
* quote函數,單引號
*/
echo "_______________\n";