mirror of
https://github.com/FlyInTheBox/31TSAI.git
synced 2024-12-22 14:26:59 +01:00
a
This commit is contained in:
parent
d7e069dce2
commit
b25e7118a5
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ if (!mysqli_query($id_conn, $sql_ins))
|
|||
echo '<br>' . substr($depts, 6);
|
||||
}
|
||||
|
||||
$sql_mgr = "SELECT id, last_name FROM emp";
|
||||
$sql_mgr = "SELECT DISTINCT szef.id, szef.last_name FROM emp AS prac LEFT OUTER JOIN emp AS szef ON prac.manager_id = szef.id";
|
||||
$wyn_mgr = mysqli_query($id_conn, $sql_mgr);
|
||||
if (!$wyn_mgr || mysqli_error($id_conn)) {
|
||||
echo "Błąd w zapytaniu o departamenty: " . $baza . '(' . mysqli_error($id_conn) . ')';
|
||||
|
|
Loading…
Reference in a new issue