<?php
header('Content-Type: text/html; charset=utf-8');
include_once("database.php"); //это подключение к базе через отдельный пхп
$result=mysql_query('SELECT * FROM `zakaz`'); // запрос на выборку
while($row=mysql_fetch_array($result))
{
echo '<p>Запись id='.$row['id'].'. Имя: '.$row['name'].'</p>';// выводим данные
}
</code
<fieldset>
<div class="mdn-section">
<div class="mdn-label-pos block-label"><label class="mdn-label">Отметьте предпочтения</label></div>
<div class="form-row">
<div class="col col-4">
<div class="mdn-group block-group">
<label class="mdn-option">
<input name="check[podpiska]" type="checkbox" value="Подписка">
<span class="mdn-checkbox"></span>
<span class="option-label">Подписка</span>
</label>
<label class="mdn-option">
<input name="check[layki]" type="checkbox" value="Лайки">
<span class="mdn-checkbox"></span>
<span class="option-label">Лайки</span>
</label>
<label class="mdn-option">
<input name="check[flirt]" type="checkbox" value="Флирт">
<span class="mdn-checkbox"></span>
<span class="option-label">Флирт</span>
</label>
<label class="mdn-option">
<input name="check[otnoshenija]" type="checkbox" value="Отношения">
<span class="mdn-checkbox"></span>
<span class="option-label"> Отношения </span>
</label>
</div><!-- end .mdn-group section -->
</div><!-- end col-4 -->
<div class="col col-4">
<div class="mdn-group block-group">
<label class="mdn-option">
<input name="check[sex]" type="checkbox" value="Секс">
<span class="mdn-checkbox"></span>
<span class="option-label">Секс</span>
</label>
<label class="mdn-option">
<input name="check[love]" type="checkbox" value="Любовь">
<span class="mdn-checkbox"></span>
<span class="option-label">Любовь</span>
</label>
<label class="mdn-option">
<input name="check[perepiska]" type="checkbox" value="Переписка" >
<span class="mdn-checkbox"></span>
<span class="option-label">Переписка</span>
</label>
<label class="mdn-option">
<input name="check[obshenije]" type="checkbox" value="Общение">
<span class="mdn-checkbox"></span>
<span class="option-label">Общение</span>
</label>
</div><!-- end .mdn-group section -->
</div><!-- end col-4 -->
<div class="col col-4">
<div class="mdn-group block-group">
<label class="mdn-option option">
<input name="check[znakomstvo]" type="checkbox" value="Знакомство">
<span class="mdn-checkbox"></span>
<span class="option-label">Знакомство</span>
</label>
<label class="mdn-option option">
<input name="check[druzhba]" type="checkbox" value="Дружба">
<span class="mdn-checkbox"></span>
<span class="option-label">дружба</span>
</label>
<label class="mdn-option option">
<input name="check[sponsor]" type="checkbox" value="Спонсор">
<span class="mdn-checkbox"></span>
<span class="option-label">Спонсор</span>
</label>
<label class="mdn-option option">
<input name="check[allvariants]" type="checkbox" value="Все варианты">
<span class="mdn-checkbox"></span>
<span class="option-label">все варианты :)</span>
</label>
</div><!-- end .mdn-group section -->
</div><!-- end col-4 -->
</div><!-- end form-row -->
</div>
</fieldset>
<?php
$connection = mysql_connect("localhost", "root", "123");
$db = mysql_select_db("Order");
mysql_query(" SET NAMES 'utf8' "); // mysql_set_charset("utf8");
if(!$connection || !$db)
{
exit(mysql_error());
}
?>