1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
$reponse_prop = mysqli_query($conn_cecs, "SELECT *
FROM 02_prop prop
LEFT JOIN (
SELECT * FROM 00_compta_cours T1 INNER JOIN 00_compta_dates T2 ON T1.compta_cours_date_id=T2.compta_dates_id LIMIT 1
) cours
ON prop.id_prop=cours.compta_cours_prop_id
WHERE p_reinscription>='$liste_alerte_date_debut_gb' && p_mail!='' && p_option3='non'
ORDER BY id_prop DESC, compta_cours_date_id DESC") or die(mysqli_error($conn_cecs));
while ($in=mysqli_fetch_array($reponse_prop)) {
$alertes_membre_id=$in['id_prop']; // ----- Issus de la table 02_prop et ce qui suit
$alertes_membre_prenom=$in['p_prenom'];
$alertes_membre_nom=$in['p_nom'];
$alertes_membre_cotisation=$in['p_reinscription'];
$alertes_membre_abonnement=$in['p_abonnement'];
$alertes_membre_rc=$in['p_echeance'];
$alertes_dernier_cours_date=$in['compta_dates_date']; // ----- Issus de la table 00_compta_dates -> MON PROBLEME avec le LIMIT 1
$i ++;
print "- $i -> [$alertes_membre_id] $alertes_membre_prenom $alertes_membre_nom ($alertes_membre_cotisation) : $alertes_membre_abonnement - $alertes_membre_rc - $alertes_dernier_cours_date<br />";
} |
Partager