DESCRIBE vn_conf
执行错误: Can't create/write to file '/tmp/#sql_109e_0.MYI' (Errcode: 28 - No space left on device)
- /www/wwwroot/www.ltk0574.com/Comm/MyFrame/Drivers/mysql.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysql_query($sql, $this->conn) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />执行错误: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影响行数
- /www/wwwroot/www.ltk0574.com/Comm/MyFrame/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
28.
$rows = array();
29.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.
mysql_free_result($result);
31.
array_pop($rows);
- /www/wwwroot/www.ltk0574.com/Comm/MyFrame/Drivers/mysql.php on line 81
76.
*
77.
* @param tbl_name 表名称
78.
*/
79.
public function getTable($tbl_name)
80.
{
81.
82.
return $this->getArray("DESCRIBE {$tbl_name}");
}
83.
84.
/**
85.
* 构造函数
86.
*
- /www/wwwroot/www.ltk0574.com/Comm/MyFrame/Core/spModel.php on line 372
367.
* 按表字段调整适合的字段
368.
* @param rows 输入的表字段
369.
*/
370.
private function __prepera_format($rows)
371.
{
372.
373.
$columns = $this->_db->getTable($this->tbl_name);
$newcol = array();
374.
foreach( $columns as $col ){
375.
$newcol[$col['Field']] = $col['Field'];
376.
}
377.
return array_intersect_key($rows,$newcol);
- /www/wwwroot/www.ltk0574.com/Comm/MyFrame/Core/spModel.php on line 283
278.
* 此参数的格式用法与create的$row是相同的。在符合条件的记录中,将对$row设置的字段的数据进行修改。
279.
*/
280.
public function update($conditions, $row)
281.
{
282.
$where = "";
283.
284.
$row = $this->__prepera_format($row);
if(empty($row))return FALSE;
285.
if(is_array($conditions)){
286.
$join = array();
287.
foreach( $conditions as $key => $condition ){
288.
$condition = $this->escape($condition);
- /www/wwwroot/www.ltk0574.com/Comm/MyFrame/SpeedPHP.php on line 271
266.
}
267.
$txt .='</urlset>';
268.
fwrite($myfile,$txt);
269.
fclose($myfile);
270.
271.
272.
spClass('m_conf')->update(array('id'=>1),array('rcmaprq'=>date('Y-m-d')));
}
- /www/wwwroot/www.ltk0574.com/index.php on line 10
5.
define('APP_PATH', dirname(__FILE__));
6.
define('SP_PATH', dirname(__FILE__).'/Comm/MyFrame');
7.
//加载配置文件
8.
require('config.php');
9.
//加载框架核心
10.
11.
require(SP_PATH.'/SpeedPHP.php');
require('functions.php');
12.
//执行应用
13.
spRun();
14.
?>