Курсовая работа: Создание сайта Библиотека онлайн
$array_bday=getdate($result[0]);
$bday=$array_bday["mday"]." ".$array_bday["month"]." ".$array_bday["year"];
$text="<table border=\"0\"><br><td>\n
<table border=\"0\"><form>\n
<tr><td>Номер читательского билета:</td>\n
<td><input type=\"text\" value=\"".$result["num_reader"]."\" readonly></td></tr>\n
<tr><td>Фамилия:</td>\n
<td><input type=\"text\" value=\"".$result["surname"]."\" readonly></td></tr>\n
<tr><td>Имя:</td>\n
<td><input type=\"text\" value=\"".$result["name"]."\" readonly></td></tr>\n
<tr><td>Отчество:</td>\n
<td><input type=\"text\" value=\"".$result["patronymic_name"]."\" readonly></td></tr>\n
<tr><td>День рождения:</td>\n
<td><input type=\"text\" value=\"".$bday."\" readonly></td></tr>\n
<tr><td>Телефон:</td>\n
<td><input type=\"text\" value=\"".$result["phone"]."\" readonly></td></tr>\n
<tr><td>Домашний адрес:</td>\n
<td><input type=\"text\" value=\"".stripslashes($result["address"])."\" readonly></td></tr>\n
</form></table></td><td width=\"15\"></td><td valign=\"bottom\">\n
<center><a href=\"users.php\"><font color=\"black\">Назад</font></a></center><br> <br> <br> <br> <br>
<form method=\"post\"><input name=\"edit\" type=\"submit\" value=\"Изьменить данные\"></form>\n
</td></tr></table>\n";
$res=mysql_query("select `num_inventory`, b.num_book, `name_book`, UNIX_TIMESTAMP(`date_issue`), UNIX_TIMESTAMP(`date_return`), `returned`
from `Orders` join (`Book` b join `Books` bs using(`num_book`)) using (`num_inventory`) where `num_reader`='".$id."'", $link);
$num=mysql_num_rows($res);
for($i=0; $i<$num; $i++)
{
$result=mysql_fetch_array($res);
$array_date=getdate($result[3]);