Albatta, php-dan mysql-dagi localhost:3306-dagi ma'lumotlar bazasiga ulanish uchun quyidagi kengaytmalardan birini ishlatishingiz kerak: mysqli, PDO yoki mysql (so'nggi). Bu yerda mysqli kengaytmasidan qanday foydalanishning misoli keltirilgan: <?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "dbname"; // Connection $conn = new mysqli$(servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) die {("Connect failed: ". $conn->connect_error); } // Connection bilan bog'liq biror narsa qiling... // Close connection... // $conn->close?);
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence