Mara_2 -4 Newbie Poster

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(); 
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.