Salut
bon quand j'affiche ma page il m'affiche ce message
Error: Cannot add or update a child row: a foreign key constraint fails (`planning`.`task_progress`, CONSTRAINT `FK_Task_Progress_Status` FOREIGN KEY (`Id_Status`) REFERENCES `Status` (`Id_Status`))

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
<?php
include('Connection.php');
 
$Author = $_POST['Author'];
$Date_Progress= $_POST['Date_Progress'];
$Requested_J2 = $_POST['Requested_J2'];
$Comment = $_POST['Comment'];
$sql="insert into Task_Progress (Id_Task_Progress,Author,Date_Progress,Requested_J2,Planned_J2,Comment,Id_Task,Id_Status,Id_Team_Members)
			values
('','$_POST[Author]','$_POST[Date_Progress]','$_POST[Requested_J2]','','$_POST[Comment]','','','')";
 
if (!mysql_query($sql))
  {
  die('Error: ' . mysql_error());
  }
echo $_POST['Contract'];
 
?>