Parse error: syntax error, unexpected T_STRING in Y:\home\dezh.ru\www\select_user.php on line 29
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=cp1251_general_ci">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Поиск пользователя</title>
</head>
<body>
<?php
require 'scripts/connect.php';
$first_name = trim($_REQUEST['first_name']);
$last_name = trim($_REQUEST['last_name']);
$third_name = trim($_REQUEST['third_name']);
$email = trim($_REQUEST['email']);
$facebook = trim($_REQUEST['facebook']);
$otkuda = trim($_REQUEST['otkuda']);
$sql_select = "SELECT * FROM user WHERE first_name='$first_name' && last_name='$last_name'";
$result = mysql_query($sql_select);
$row = mysql_fetch_array($result);
if($row)
{
printf("<p>Пользователь: " .$row['first_name'] . " " .$row['last_name'] ."</p>
<p><i>Контактные данные</i></p><p>E-mail: " .$row['email'] . "</p><p>Facebook: " .$row['facebook'] . "<p>Город: " .$row['otkuda'] . "</p>---------<br/>
);
}
else{echo ("Пользователя с таким именем в базе нет<br/><br/>");}
?>
<a href="search_user.html">Вернуться к поиску</a><br/><br/>
<a href="info_form.html">Добавить пользователя</a>
</body>
</html>
printf(
"<p>Пользователь: %s %s</p>
<p><i>Контактные данные</i></p>
<p>E-mail: %s</p>
<p>Facebook: %s</p>
<p>Город: %s</p>
---------<br/>" // !!!!!!!!!!!! here
$row['first_name'], $row['last_name'], $row['email'], $row['facebook'], $row['otkuda']
);