Can't create a Database on a Server

I have just set up a server folder and I am attempting to create a Database on the Server with code as below:

 <?php
 $servername = "http://www.servername.com";
 $username = "username";
 $password = "password";
  
 $conn = new mysqli($servername, $username, $password);
 ?>

The access codes I am using are the same as what I use in File Zilla for FTP transfers to the site.

Unfortunately I get an error message "No such address, when I try this.

Any help would be appreciated.

Mike

Server name is not an http hostname

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.