I need to create a database from the messages, coming from the Mobirise website builder's forms. What code should I use?
This doesn't work. Could you please help me.

$link = mysqli_connect('localhost', 'root', 'password'); 
if (!$link) 
{ 
  $output = 'Unable to connect to the database server.'; 
  include 'output.html.php'; 
  exit(); 
}