par
zmaped » 07 juin 2010, 18:26
Bonjour à tous
Lors de la programmation de mon code, je rencontre une erreur au niveau de ma requête SQL (jointure de deux table!
Infos : Va chercher IBAN, swift, Paypal , Neteller de la table
infos_paiement puis Adresse Code postal Ville Pays de la table
infos_perso si l'ID membre des deux est égale $tableau['ID_MEMBRE']
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/public_html/admin/paiement/gestion_paiement.php on line 77
<?php $execution = mysql_query("SELECT infos_paiement.IBAN, infos_paiement.swift,
infos_paiement.Paypal, infos_paiement.Neteller,
infos_perso.Adresse, infos_perso.Code postal, infos_perso.Ville, infos_perso.Pays FROM infos_paiement, infos_perso
WHERE infos_paiement.ID_MEMBRE='".$tableau['ID_MEMBRE']."' ");
$array = mysql_fetch_array($execution); echo $array[0], $array[1], $array[2], $array[3], $array[4], $array[5], $array[6]; ?>
Merci de m'aider
Cordialement
Bonjour à tous
Lors de la programmation de mon code, je rencontre une erreur au niveau de ma requête SQL (jointure de deux table!
Infos : Va chercher IBAN, swift, Paypal , Neteller de la table [b]infos_paiement[/b] puis Adresse Code postal Ville Pays de la table [b]infos_perso[/b] si l'ID membre des deux est égale $tableau['ID_MEMBRE']
[color=#FF0040]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/public_html/admin/paiement/gestion_paiement.php on line 77[/color]
[php]<?php $execution = mysql_query("SELECT infos_paiement.IBAN, infos_paiement.swift,
infos_paiement.Paypal, infos_paiement.Neteller,
infos_perso.Adresse, infos_perso.Code postal, infos_perso.Ville, infos_perso.Pays FROM infos_paiement, infos_perso
WHERE infos_paiement.ID_MEMBRE='".$tableau['ID_MEMBRE']."' ");
$array = mysql_fetch_array($execution); echo $array[0], $array[1], $array[2], $array[3], $array[4], $array[5], $array[6]; ?>[/php]
Merci de m'aider
Cordialement