Good day everyone! Help guys find the error in the code:

<?php $link = mysql_connect('localhost','root','2799994') or die (mysql_error()); mysql_select_db(`web_1`, $link); $resultat = mysql_query("SELECT * FROM `alex`",$link); $table = "<table>"; while ($row = mysql_fetch_assoc($resultat)) { $table .= "<tr>"; $table .= "<td>".$row['Фамилия']."</td>"; $table .= "<td>".$row['Имя']."</td>"; $table .= "<td>".$row['Отчество']."</td>"; $table .= "<td>".$row['Позывной']."</td>"; $table .= "<td>".$row['Машина']."</td>"; $table .= "<td>".$row['Цвет']."</td>"; $table .= "<td>".$row['Гос.номер']."</td>"; $table .= "<td>".$row['Год выпуска']."</td>"; $table .= "<td>".$row['Шашка']."</td>"; $table .= "<td>".$row['Лицензия']."</td>"; $table .= "</tr>"; } $table .= "</table> "; echo $table; mysql_close(); ?> 

When you run the file, however, only a blank browser screen appears.

  • enable error output. as an option, you have a really empty output. What is the source of the page? - thunder
  • How to enable error output? I need to click on the link to navigate to the page that will contain the table stored in the database. Table alex from db web_1 - Margarita
  • If the connection specifies the encoding correctly, use only UTF8, then there will be no problems. - Vfvtnjd 3:56 pm
  • mysql_set_charset ('utf8'); so I wrote it everywhere. and when creating the base, she pointed it out. Still nothing happens on the page and the table is not displayed - Margarita
  • one
    writes that he cannot find the index on 18 lines ... do you really have the field names in the table in Russian? if I understand correctly, this is this line of $ table. = "<td>". $ row ['State number']. "</ td>"; - thunder

0