-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathman.php
More file actions
55 lines (53 loc) · 1.03 KB
/
man.php
File metadata and controls
55 lines (53 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php include_once ("head.php");?>
<?
if (isset($_GET['user']))
{
$user=$_GET['user'];
if (only_char_and_num($user))
{
$result=mysql_query ("SELECT * FROM `users` WHERE `user` ='$user'"); // выбор одной записи из БД
if(!mysql_num_rows($result))
exit("Нету такого у нас. Ты будешь первым=)") ;
else
{
$row=mysql_fetch_array($result);
/*
echo ($row['id']);
echo ($row['user']);
echo ($row['password']);
echo ($row['image']);
echo ($row['name']);
echo ($row['surname']);
echo ($row['email']);
echo ($row['job']);
echo ($row['phone']);*/
?>
<table class=info>
<tr>
<td>
<div class=info_left>
<table >
<tr>
<td>
<img src="<?=$row['image']?>" width="100" height="100" alt="<?=$row['user']?>">
</td>
</tr>
<tr><td><?=$row['name']?></td></tr>
</table>
</div>
</td>
<td>
<div class=info_right>
<table >
<tr>
<td>
<h1><?=$row['user']?></h1>
</td>
</tr>
<tr><td><?=$row['job']?></td></tr>
</table>
</div>
</td>
</table>
<?}}}?>
</div></div>