I am learning php. I am getting this error
Fatal error: Uncaught Error: Call to undefined method mysqli::execute() in C:xampphtdocssearchindex.php:58 Stack trace: #0 {main} thrown in C:xampphtdocssearchindex.php on line 58
Here the line 58 is
<?php
include'config.php';
$stmt=$conn->prepare("SELECT * FROM info");
$conn->execute(); // This line
$result=$stmt->get_result();
?>
I am trying to create a simple live search.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…