Kod
for ($i=0; $i <$ile_znalezionych; $i++)
{
$wiersz = $wynik->fetch_assoc();
echo '<p><strong>'.($i+1).'. nick: ';
echo stripslashes($wiersz['nick']);
echo '</strong><br />numer: ';
echo stripslashes($wiersz['numer']);
echo '<br />telefon: ';
echo stripslashes($wiersz['telefon']);
echo '<br />email: ';
echo stripslashes($wiersz['email']);
echo '<br>';
echo "<a href=\"mailto:$wiersz['email']\">Wyslij e-mail</a>";
echo '</p>';
}
{
$wiersz = $wynik->fetch_assoc();
echo '<p><strong>'.($i+1).'. nick: ';
echo stripslashes($wiersz['nick']);
echo '</strong><br />numer: ';
echo stripslashes($wiersz['numer']);
echo '<br />telefon: ';
echo stripslashes($wiersz['telefon']);
echo '<br />email: ';
echo stripslashes($wiersz['email']);
echo '<br>';
echo "<a href=\"mailto:$wiersz['email']\">Wyslij e-mail</a>";
echo '</p>';
}
Chcialbym miec mozliwosc wysylania maila do wybranego,znalezionego nicka,a wiersz
Kod
[size="3"]echo "<a href=\"mailto:$wiersz['email']\">Wyslij e-mail</a>"; [/size]
nie dziala i zwraca blad..Jak to zmienic?


Kod
$mail = $wiersz['email'];
if ($mail) echo "<a href=\"mailto:$mail\">Wyslij e-mail</a>";
if ($mail) echo "<a href=\"mailto:$mail\">Wyslij e-mail</a>";