Введите данные нового действия:

Название:

Действие:

'; } else { if ($new == "2") { echo "Запись добавлена!"; $qstr = "insert into jobtypes (name, tasktypes, company) values (".$jobname.",".$tasktypes.",".$companyID.")"; //echo "query string ".$qstr; mysqli_query($link, $qstr); } else if ($new == "3") { echo "Задача $del_id удалена!"; mysqli_query($link, "delete from jobtypes where id =".$del_id); } echo "

Должности, компания ".$companyname.":

"; $query1 = mysqli_query($link, "select * from jobtypes where company=$companyID"); while ($res1 = mysqli_fetch_array($query1)) { $job_id = $res1['id']; $name = $res1['name']; $tasktypes = $res1['tasktypes']; echo ''; echo "[$job_id], ".$name." задачи [$tasktypes]"; echo " "; echo "
"; } echo "
"; echo "
"; } ?>