У меня есть шаблон для login.html
. Есть строка: <h5>© Your Company</h5>
. Я хочу, чтобы название компании было вытащено из базы данных MySQL. У меня есть файл compnayname.php
, где я получаю название компании от db. Как я могу реализовать это в следующем коде? Благодарю.данные из базы данных mysql в html
<div id="container">
<hgroup id="login-title" class="large-margin-bottom">
<h1 class="login-title-image">Company</h1>
<h5>© Your Company</h5>
</hgroup>
<form method="post" action="" id="form-login">
<ul class="inputs black-input large">
<!-- The autocomplete="off" attributes is the only way to prevent webkit browsers from filling the inputs with yellow -->
<li><span class="icon-user mid-margin-right"></span><input type="text" name="login" id="login" value="" class="input-unstyled" placeholder="Login" autocomplete="off"></li>
<li><span class="icon-lock mid-margin-right"></span><input type="password" name="pass" id="pass" value="" class="input-unstyled" placeholder="Password" autocomplete="off"></li>
</ul>
<button type="submit" class="button glossy full-width huge">Login</button>
</form>
</div>
сделать ваш файл 'входа. php' и включить файл 'company_name.php' там –