-2
Speaks personal beauty then the following , excluding course should be respect the idea that , where they can not have name linked to that course, ie, if you have name that has that course, can not be excluded, am a beginner. below as this mounted course exclude so far!
<?php
include "../includes/conexao.php";
$id = $_GET['id'];
$sql = "DELETE FROM curso where id = $id";
$query = mysqli_query($conexao, $sql);
if($query){
header("location: curso.php?mensagem=sucesso");
}else{
header("location: curso_excluir.php?mensagem=erro");
}
?>
Avoid image, edit your question and paste your code into it
– hugocsl
"where they cannot have name linked with that course" ... I didn’t quite understand. The name you refer to is a field of the course table?
– Andrei Coelho
That, it is as if when inserting the course of the '''table course'' in user, the same cannot be excluded in the table course , because the same is registered a user .
– Manchado Manoel
@Manchadomanoel put the course user table
– Andrei Coelho