Home > Backend Development > PHP Tutorial > 异常求解 大神们

异常求解 大神们

WBOY
Release: 2016-06-13 11:23:26
Original
798 people have browsed it

错误求解 大神们啊
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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template