# Ответ: Parse error: syntax error, unexpected $end in A:\\home\\meddostavka.ru\\www\\log.php on line 26

**URL:** <https://www.phphelp.com/t/parse-error-syntax-error-unexpected-end-in-a-home-meddostavka-ru-www-log-php-on-line-26/36222>\
**Category:** Beginners - Learning PHP\
**Created:** [July 30, 2024, 5:52am UTC](https://www.phphelp.com/t/parse-error-syntax-error-unexpected-end-in-a-home-meddostavka-ru-www-log-php-on-line-26/36222 "2024-07-30T05:52:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rassell](https://www.phphelp.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@rassell](https://www.phphelp.com/u/rassell)\
**Post date:** [July 30, 2024, 5:52am UTC](https://www.phphelp.com/t/parse-error-syntax-error-unexpected-end-in-a-home-meddostavka-ru-www-log-php-on-line-26/36222/1 "2024-07-30T05:52:16Z")

</div>

Ответ: Parse error: syntax error, unexpected $end in A:\home\[meddostavka.ru](http://meddostavka.ru)\www\log.php on line 26  
Denwer, PHP Version 5.3.13

```auto
<?php
//просто функция
 function translit($str) {
    $rus = array('А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ё', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М', 'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ъ', 'Ы', 'Ь', 'Э', 'Ю', 'Я', 'а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я');
    $lat = array('A', 'B', 'V', 'G', 'D', 'E', 'E', 'Gh', 'Z', 'I', 'Y', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'F', 'H', 'C', 'Ch', 'Sh', 'Sch', 'Y', 'Y', 'Y', 'E', 'Yu', 'Ya', 'a', 'b', 'v', 'g', 'd', 'e', 'e', 'gh', 'z', 'i', 'y', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'h', 'c', 'ch', 'sh', 'sch', 'y', 'y', 'y', 'e', 'yu', 'ya');
    return str_replace($rus, $lat, $str);
  }
//POST запрос пароль-емайл
$email = $_POST["email"];
$password = $_POST["password"];
$link = mysql_connect("localhost", "root", "");
$db = mysql_select_db("apteka") or die("Couldn't select database.");
$result = mysql_query("SELECT password FROM users WHERE email = \"silent.post@inbox.ru\");
//ответ на коннект
if (!$result) {
echo 'Could not run query: ' . mysql_error();
}
$row = mysql_fetch_row($result);
if ($result) {
echo $row[0];
echo $row[1];
}
?>
```

Where error here?

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [July 31, 2024, 1:27am UTC](https://www.phphelp.com/t/parse-error-syntax-error-unexpected-end-in-a-home-meddostavka-ru-www-log-php-on-line-26/36222/2 "2024-07-31T01:27:21Z")

</div>

If you look at the color highlighting, it is broken after the line with the sql query statement, indicating that is the line that likely contains the problem.

I recommend that you build any sql query statement in a php variable. Also, don’t escape double-quotes, use single-quotes. Once you make these changes should should be able to see what the problem is.

Next, the php version and the mysql\_ extension are way out of date. You should plan on learning and using php8+, and use the PDO database extension.
