Mailinglisten-Archive |
This is a multi-part message in MIME format.
------=_NextPart_000_0449_01BF586B.441ADF60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
dann w=FCrde ich vorher abfragen, was im Feld steht.
if ($download !=3D "") {
$download =3D "<a href=3D\"link\">link<a/>";
} else {
$download =3D "N/A";
}
Aber eine andere Frage, warum nimmst du mysql_fetch_row ? Wenn
du doch mysql_fetch_array nimmst, ist es einfacher. Du brauchst
dann nicht vorher zuzuweisen, was $download ist..
Du h=E4ttest dann die Spaltennamen in dem Array stehen. Wie in etwa
$files[released];
$files[name];
$files[url];
$files[download];
Bis dann,
Lars
_________________________________________
http://www.provider-info.de
Die Provider-Info Seite
e-Mail: mailto:lars.scholand_(at)_provider-info.de
Web: http://www.provider-info.de
------=_NextPart_000_0449_01BF586B.441ADF60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>dann w=FCrde ich vorher abfragen, was im Feld=20
steht.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>if ($download !=3D "") {<BR> $download =
=3D "<a=20
href=3D\"link\">link<a/>";<BR>} else {<BR> =
$download =3D=20
"N/A";<BR>}<BR></FONT></DIV>
<DIV><FONT size=3D2>Aber eine andere Frage, warum nimmst du =
mysql_fetch_row ?=20
Wenn</FONT></DIV>
<DIV><FONT size=3D2>du doch mysql_fetch_array nimmst, ist es einfacher. =
Du=20
brauchst</FONT></DIV>
<DIV><FONT size=3D2>dann nicht vorher zuzuweisen, was $download =
ist..</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Du h=E4ttest dann die Spaltennamen in dem Array =
stehen. Wie in=20
etwa</FONT></DIV>
<DIV> </DIV>
<DIV><FONT=20
size=3D2>$files[released];<BR>$files[name];<BR>$files[url];<BR>$files[dow=
nload];</DIV></FONT>
<DIV> </DIV>
<DIV><FONT size=3D2>Bis dann,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Lars</FONT></DIV>
<DIV>_________________________________________<BR><A=20
href=3D"http://www.provider-info.de">http://www.provider-info.de</A><BR>D=
ie=20
Provider-Info Seite</DIV>
<DIV> </DIV>
<DIV>e-Mail: <A=20
href=3D"mailto:lars.scholand_(at)_provider-info.de">mailto:lars.scholand_(at)_provi=
der-info.de</A><BR>Web:=20
<A=20
href=3D"http://www.provider-info.de">http://www.provider-info.de</A></DIV=
></BODY></HTML>
------=_NextPart_000_0449_01BF586B.441ADF60--
php::bar PHP Wiki - Listenarchive