-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlev13.php
More file actions
32 lines (25 loc) · 744 Bytes
/
lev13.php
File metadata and controls
32 lines (25 loc) · 744 Bytes
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
<?php $host = 'localhost';
$user = 'lev13';
$pas = '123451';
$db = 'mmi';
mysql_query("SET NAMES utf8");
$connect = mysql_connect($host,$user,$pas);
if(!connect || !mysql_select_db($db,$connect))
{
exit (mysql_error());
}
$query = mysql_query("SELECT simulators.name AS sname, simulators.date, lib_types.name AS tname ,clients.name AS cname, simulators.client_id FROM simulators INNER JOIN clients ON simulators.client_id = clients.id INNER JOIN lib_types ON simulators.type_id = lib_types.id");
$row = mysql_fetch_array($query);
do
{
echo $row['sname'];
echo '</br>';
echo $row['tname'];
echo '</br>';
echo $row['cname'];
echo '</br>';
echo $row['client_id'];
echo '</br>';
}
while ($row = mysql_fetch_array($query)) ;
?>