Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<?
$fields=Array('id_zav','address','telephone','time','date','time2','date2','ip_add','comments','nastroishiki','segment','error');
?>
<table align="center" border="1">
<form method="post">
<tr>
<td><label for='type1'>Select Field</label>
<select name="type1" id="type1">
<option value=''>---</option>
<?
for ($i=0;$i<sizeof($fields);$i++)
echo '<option value='.$i.'>'.$fields[$i].'</option>';
?>
</select>
<input type=submit name=act value='Show field'>
</td>
</tr></table>
<?
if (!isset($_POST['act'])||$_POST['act']!='Show field'||!isset($_POST['type1'])||!isset($fields[$_POST['type1']]))die();
?>
<table border=1 style="border-collapse:collapse;" bordercolor=#000000 bgcolor="#f5f5f5">
<?php
include ('connect.php');
$query='select '.$fields[$_POST['type1']].' from add_zayavka';
$result=mysql_query($query);
$count321=mysql_num_rows($result);
for ($i=0; $i<$count321; $i++)
{
$row=mysql_fetch_object($result);
echo '<tr><td align=center>'.($i+1).'</td>';
echo '<td align=center>'.$row->$fields[$_POST['type1']].'</td></tr>'
}
?>
</table>