php kohana框架数据库链接错误?? 20
ErrorException[FatalError]:Class'Database_Query_Builder_Select'notfoundMODPATH\databa...
ErrorException [ Fatal Error ]: Class 'Database_Query_Builder_Select' not found
MODPATH\database\classes\kohana\db.php [ 63 ]
58 * @param ...
59 * @return Database_Query_Builder_Select
60 */
61 public static function select($columns = NULL)
62 {
63 return new Database_Query_Builder_Select(func_get_args());
64 }
65
66 /**
67 * Create a new [Database_Query_Builder_Select] from an array of columns.
68
怎么错误!database.php文件没有起到作用啊!
怎么处理啊??
database.php文件内容!
<?php
return array
(
'default' => array
(
'type' => 'mysql',
'connection' => array(
'hostname' => 'localhost',
'database' => 'welcome',
'username' => 'root',
'password' => '123456',
'persistent' => FALSE,
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
);
?> 展开
MODPATH\database\classes\kohana\db.php [ 63 ]
58 * @param ...
59 * @return Database_Query_Builder_Select
60 */
61 public static function select($columns = NULL)
62 {
63 return new Database_Query_Builder_Select(func_get_args());
64 }
65
66 /**
67 * Create a new [Database_Query_Builder_Select] from an array of columns.
68
怎么错误!database.php文件没有起到作用啊!
怎么处理啊??
database.php文件内容!
<?php
return array
(
'default' => array
(
'type' => 'mysql',
'connection' => array(
'hostname' => 'localhost',
'database' => 'welcome',
'username' => 'root',
'password' => '123456',
'persistent' => FALSE,
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
);
?> 展开
2个回答
展开全部
追问
在ubuntu下做的可以运行,但把它拷到win下,新建了数据库就报错了!
$sum=DB::select()->from('welcome');
$sum=DB::query(Database::SELECT ,$sum)->execute()->as_array();
$id=$_GET['id'];
$content= ORM::factory('welcome');
$contents=$content->finduser($id);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询