note 126747 added to function.mysqli-connect

From: Date: Tue, 04 Jan 2022 13:36:02 +0000
Subject: note 126747 added to function.mysqli-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-217467@lists.php.net to get a copy of this message
<?php // connecting to database $servername = "localhost"; // default servername for pHpMyAdmin $username = "root"; // default username for pHpMyAdmin $password = ""; // default password for pHpMyAdmin // create a connection $connection = mysqli_connect($servername, $username, $password); if (!$connection ){ die("Connection failed <br>" .mysqli_error($connection)); }else{ echo "Connection is successfull"; } ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 43.231.239.44) ---- Manual Page -- https://php.net/manual/en/function.mysqli-connect.php Edit -- https://main.php.net/note/edit/126747 Del: integrated -- https://main.php.net/note/delete/126747/integrated Del: useless -- https://main.php.net/note/delete/126747/useless Del: bad code -- https://main.php.net/note/delete/126747/bad+code Del: spam -- https://main.php.net/note/delete/126747/spam Del: non-english -- https://main.php.net/note/delete/126747/non-english Del: in docs -- https://main.php.net/note/delete/126747/in+docs Del: other reasons-- https://main.php.net/note/delete/126747 Reject -- https://main.php.net/note/reject/126747 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217467) next »