Martn Posted April 18, 2021 Share Posted April 18, 2021 Hi, My server is running PHP version 7.3 I'm getting the error "Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function mysqli()" on this code to open my DB : <?php $servername = "localhost"; $username = "tester"; $password = "@Tester@"; $db = "test"; // Create connection $conn = mysqli_connect($servername, $username, $password,$db); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); }else { echo "Connected successfully"; } ?> Can someone give me hint on the mistake I'm making ? Thanks. Quote Link to comment Share on other sites More sharing options...
Barand Posted April 18, 2021 Share Posted April 18, 2021 Have you enabled php_mysqli extension in your php.ini file? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.