DESCRIBE vn_conf
執(zhí)行錯(cuò)誤: Got error 28 from storage engine
- /www/wwwroot/www.45133i.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 />執(zhí)行錯(cuò)誤: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影響行數(shù)
- /www/wwwroot/www.45133i.com/Comm/MyFrame/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 執(zhí)行的SQL語(yǔ)句
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.45133i.com/Comm/MyFrame/Drivers/mysql.php on line 81
76.
*
77.
* @param tbl_name 表名稱(chēng)
78.
*/
79.
public function getTable($tbl_name)
80.
{
81.
82.
return $this->getArray("DESCRIBE {$tbl_name}");
}
83.
84.
/**
85.
* 構(gòu)造函數(shù)
86.
*
- /www/wwwroot/www.45133i.com/Comm/MyFrame/Core/spModel.php on line 372
367.
* 按表字段調(diào)整適合的字段
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.45133i.com/Comm/MyFrame/Core/spModel.php on line 283
278.
* 此參數(shù)的格式用法與create的$row是相同的。在符合條件的記錄中,將對(duì)$row設(shè)置的字段的數(shù)據(jù)進(jìn)行修改。
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.45133i.com/Comm/MyFrame/SpeedPHP.php on line 222
217.
';
218.
}
219.
$txt .='</urlset>';
220.
fwrite($myfile,$txt);
221.
fclose($myfile);
222.
223.
spClass('m_conf')->update(array('id'=>1),array('rcmaprq'=>date('Y-m-d')));
}
- /www/wwwroot/www.45133i.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('icopylock.com.php');
12.
require('functions.php');
13.
//執(zhí)行應(yīng)用
14.
spRun();
15.
?>