SELECT * FROM qf_self WHERE id = and visible = 1 ORDER BY id LIMIT 1
执行错误: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and visible = 1 ORDER BY id LIMIT 1' at line 1
- /home/hljt/domains/www.spirittaco.com/public_html/Comm/MyFrame/Drivers/mysql.php on line 82
77.
{
78.
$this->arrSql[] = $sql;
79.
if( $result = mysql_query($sql, $this->conn) ){
80.
return $result;
81.
}else{
82.
83.
spError("{$sql}<br />执行错误: " . mysql_error());
}
84.
}
85.
86.
/**
87.
* 返回影响行数
- /home/hljt/domains/www.spirittaco.com/public_html/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[