J'ai cette erreur la:
1. Warning: Supplied argument is not a valid PostgreSQL link resource in /home/dut-src1/rcazo/public_html/passer.php on line 27
2.
3. Warning: Supplied argument is not a valid PostgreSQL result resource in /home/dut-src1/rcazo/public_html/passer.php on line 28
sur ce fichier la:
<?
echo "<html>
<head><title>Petites Annonces.com</title>
</head>
<body bgcolor='#000066'>
<font size='8' color='yellow'><center>Passer une Annonce avec Petites Annonces.com
<br><br><br><font size='6' color='orange'>
Afin de mettre en ligne vos annonces, remplissez le formulaire suivant et votre annonce sera consultable instantanemment!<br><br><br>
<form action='annonce.php'>
<table>
<tr>
<td><font size='6' color='orange'>
le titre de votre annonce: </td><td><input type='text' name='titre'></td><br><br>
</tr><tr>
<td><font size='6' color='orange'>
vos produits: </td><td><input type='text' name='produit'></td><br><br>
</tr>
<td></td>
<td>
<input type='submit' value='Valider'></td>
</tr>
</table>";
$produit="SELECT P.description,P.prix FROM PRODUITS P,ANNONCES A WHERE A.num_annonce=P.num_annonce AND A.pseudo_annonceur='$login' AND P.etat_vente='f';";
$res=pg_Exec($connect, '$produit');
$rows=pg_NumRows($res);
for ($j=0;$j<$rows;$j++){
echo "<input type='checkbox' name='check_produit'>";
echo "$j";
echo "<B><font size='5' color='blue'><center><u>Description du produit:</u> ".pg_result ($res,$j,'description');
echo "<B><font size='5' color='blue'><center><u>Prix:</u> ".pg_result ($res,$j,'prix')." euros</font>";
}
echo "</form><br><br><br><a href='acceuil.html' target='_self'>Retour acceuil</a>
</body>
</html>";
?>
les lignes 27 et 28 c'est $res... et $rows...
Help vite please!