Home  >  Article  >  Backend Development  >  异常求解 大神们

异常求解 大神们

WBOY
WBOYOriginal
2016-06-13 11:23:26677browse

错误求解 大神们啊
if (isset($_GET['go'])) {
  require_once('connection.php');
  $conn = dbConnect('read');
  $searchterm = '%' . $conn->real_escape_string($_GET['search']) . '%';
  $sql = "SELECT * FROM zhuce WHERE User LIKE '$search'";
  $result = $conn->query($sql) or die($conn->error);
  $numRows = $result->num_rows;
}
?>
nbsp;HTML>



查询





 关键词:
  
  





  
    
    
    
    
    
    
  fetch_assoc()) { ?>
  
    
    
    
    
    
      
  
用户名 生日 邮箱 固定电话 移动电话

} ?>


Fatal error: Call to a member function real_escape_string() on a non-object in D:\xampp\htdocs\zhuce\search.php on line 5
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn