如何将数据从mysql数据库显示到php中的标签? [关闭]

I want to get form labels that are stored in Mysql so i can easily display any language using select statement.
this is what i did but its hard to implement since i have different languages.
any guidance will be appreciated.

form

It's better to store labels in php document, than in your html document call it with echo based upon language selection.

PHP - filename e.g. lang-en.php

<?php

  // Language English

  $name   = 'Name';
  $phone  = 'Phone';
  $street = 'Street';


  // and so on...
?>

HTML - must be with .php extension! e.g. index.php

<!doctype html>

<html>

<head>

</head>

<body>
include('lang-en.php'); <!-- Include default language -->

  <!-- Process select with jQuery/AJAX to include file in your index.php based upon selection -->

  <form id="select-lang">
    <select id="language">
      <option value="en">English</option>
      <option value="de">Deutsch</option>
      <option value="es">Espanol</option>
    </select>
  </form>

  <form>
    <label for="name"><?php echo $name; ?></label>
    <input name="name" type="text" id="name"/>
  </form>

</body>

</html>