My table is created with a loop in PHP. Do I do this by PHP even adding a condition or has it any better?
if ($nomSenha == 'xxxxxxxx') {
echo '<table class="pesquisaClientes">';
echo '<tr>';
echo '<td class="id">Id</td>
<td class="nome">Nome</td>
<td class="endereco">Endereço</td>
<td class="bairro">Bairro</td>
<td class="numero">Número</td>
<td class="complemento">Complemento</td>
<td class="telefone">Telefone</td>
<td class="email">Email</td>
<td class="data">Data</td>
<td class="editar">Editar</td>';
echo '</tr>';
$i = 0;
while ($clientes = mysql_fetch_array($selecionarClientes, MYSQL_NUM)) {
$i += 1;
echo '<tr id="cliente'.$i.'">';
echo '<td class="id">'.iconv('ISO-8859-1','UTF-8',$i).'</td>
<td class="nome">'.iconv('ISO-8859-1','UTF-8',$clientes[2]).'</td>
<td class="endereco">'.iconv('ISO-8859-1','UTF-8',$clientes[1]).'</td>
<td class="bairro">'.iconv('ISO-8859-1','UTF-8',$clientes[3]).'</td>
<td class="numero">'.iconv('ISO-8859-1','UTF-8',$clientes[4]).'</td>
<td class="complemento">'.iconv('ISO-8859-1','UTF-8',$clientes[5]).'</td>
<td class="telefone">'.iconv('ISO-8859-1','UTF-8',$clientes[6]).'</td>
<td class="email">'.iconv('ISO-8859-1','UTF-8',$clientes[7]).'</td>
<td class="data">'.iconv('ISO-8859-1','UTF-8',$clientes[8]).'</td>
<td class="editar"> Editar </td>';
echo '</tr>';
}