par
Maitrepylos » 03 oct. 2005, 11:18
Bonjour,
J'ai une liste de 100 parsonne dans ma bdd(postgres) et je fais ceci pour tous affciher .
elseif (isset($_GET['mode']) and $_GET['mode']=="Affiche")
{
$contents = pg_query($Connect,"select * from participant,adresse where parnom='".$_POST[Nom]."' and
parprenom='".$_POST[Prenom]."' and participant.idparticipant=adresse.idparticipant and adresse.idcontact is null");
$cur=pg_fetch_array($contents);
$contact = pg_query ($Connect,"select * from adresse,contact where adresse.idparticipant='".$cur[idparticipant]."'
and contact.idparticipant='".$cur[idparticipant]."' and contact.idcontact=adresse.idcontact ");
$row=pg_fetch_array($contact);
# bloc de présentation
$result .= "<p> ";
$result .= "<b>$cur[parnom], $cur[parprenom]</ b><br>";
$result .= "<b>$cur[adrrue], $cur[adrnumero], </ b><br>";
$result .= "<b>$cur[adrcodepostal], $cur[adrlocalite], </ b><br>";
$result .= "Tél. : $cur[adrtelephone]- Gsm : $cur[adrgsm]<br>";
$result .= "<hr width = 75% color=red>";
$result .= "Personne de contact : <br><br>";
$result .= "<b>$row[connom], $row[conprenom]</ b><br>";
$result .= "<b>rue : $row[adrrue], $row[adrnumero], </ b><br>";
$result .= "<b>$row[adrcodepostal], $row[adrlocalite], </ b><br>";
$result .= "Tél. : $row[adrtelephone]- Gsm : $row[adrgsm]<br>";
$result .= "</p>";
echo $result ;
echo "<br>";
echo "<a href=\"index.php\">Retour</a>";
Malheureusement il s'arete a la lettre m et ne va pas plus loin, auriez-vous une idées de la raison?
Ai-je mal codé?
Merci de votre aide
MaitrePylos
Bonjour,
J'ai une liste de 100 parsonne dans ma bdd(postgres) et je fais ceci pour tous affciher .
[php]
elseif (isset($_GET['mode']) and $_GET['mode']=="Affiche")
{
$contents = pg_query($Connect,"select * from participant,adresse where parnom='".$_POST[Nom]."' and
parprenom='".$_POST[Prenom]."' and participant.idparticipant=adresse.idparticipant and adresse.idcontact is null");
$cur=pg_fetch_array($contents);
$contact = pg_query ($Connect,"select * from adresse,contact where adresse.idparticipant='".$cur[idparticipant]."'
and contact.idparticipant='".$cur[idparticipant]."' and contact.idcontact=adresse.idcontact ");
$row=pg_fetch_array($contact);
# bloc de présentation
$result .= "<p> ";
$result .= "<b>$cur[parnom], $cur[parprenom]</ b><br>";
$result .= "<b>$cur[adrrue], $cur[adrnumero], </ b><br>";
$result .= "<b>$cur[adrcodepostal], $cur[adrlocalite], </ b><br>";
$result .= "Tél. : $cur[adrtelephone]- Gsm : $cur[adrgsm]<br>";
$result .= "<hr width = 75% color=red>";
$result .= "Personne de contact : <br><br>";
$result .= "<b>$row[connom], $row[conprenom]</ b><br>";
$result .= "<b>rue : $row[adrrue], $row[adrnumero], </ b><br>";
$result .= "<b>$row[adrcodepostal], $row[adrlocalite], </ b><br>";
$result .= "Tél. : $row[adrtelephone]- Gsm : $row[adrgsm]<br>";
$result .= "</p>";
echo $result ;
echo "<br>";
echo "<a href=\"index.php\">Retour</a>";
[/php]
Malheureusement il s'arete a la lettre m et ne va pas plus loin, auriez-vous une idées de la raison?
Ai-je mal codé?
Merci de votre aide
MaitrePylos