Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
$query = "SELECT `id_inscrit`,`id_entreprise` FROM `LVAM_cv_envoye` WHERE id_inscrit=$id_inscrit and id_entreprise=$id_entreprise";
if ($stmt = $mysqli->prepare($query)){
$stmt->bind_param("s", $id_inscrit);
if($stmt->execute()){
$stmt->store_result();
$id_inscrit= "";
$stmt->bind_result($id_inscrit);
$stmt->fetch();
if ($stmt->num_rows == 1){
echo "Déjà envoyé";
exit;
}
}
}
SELECT Entreprise.IDE, Entreprise.nom, Entreprise.adresse, filtre.LINKTABLE.SendDate FROM Entreprise LEFT JOIN (SELECT Entreprise.IDE, LINKTABLE.SendDate FROM LINKTABLE INNER JOIN Entreprise ON LINKTABLE.IDE = Entreprise.IDE WHERE LINKTABLE.IDU=$id_inscrit ) AS filtre ON Entreprise.IDE = filtre.IDE;
SELECT Entreprise.IDE, LINKTABLE.SendDate FROM LINKTABLE INNER JOIN Entreprise ON LINKTABLE.IDE = Entreprise.IDE WHERE LINKTABLE.IDU=$id_inscrit