私はPHPとWebサーバーを初めて使用し、PHPを使用してWebサイトを作成する予定でした。mysqliを使用する無料のログインスクリプトを見つけました。このページにアクセスするたびに、mysqliがないと表示されますか?PHP3でApacheを実行しています。したがって、スクリプトのmysqli部分は次のようになります。
// if the connection is successfully established
if($conn = new mysqli($this->conn_datas['localhost'], $this->conn_datas['daztestc_testdaz'], $this->conn_datas['dj2403ms81'], $this->conn_datas['daztestc_daztest'])) {
$sql = "SET NAMES 'utf8'";
$conn->query($sql);
$this->conn = $conn; // add the connection in the $conn property
}