Re: mysql-Abfrage

Jörg Czeschla <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hi,

> Meine Abfrage sieht nun folgendermassen aus:
>
> $DatabasePointer = @mysql_connect($DatabaseHost,
> $DatabaseUser,$DatabasePassword); @mysql_select_db($Database,
> $DatabasePointer);
> $dl = @mysql_query("SELECT Hits FROM $TableDownloadCounter WHERE 
URL='$URL'", $DatabasePointer);

<untested>

while($ergebnis = mysql_fetch_object($dl)) {
	echo $ergebnis->Hits;
}

</untested>

Gruß Jörg

-- 
"Seid wann hast Du Sehnsucht nach menschlicher Gesellschaft? Es wird Zeit, 
dass Du wieder nach Hause kommst, bevor du vollends wunderlich wirst."
Cornelia Funke, Tintenherz
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBChQhVJSxq1eOzY4ARAsocAJ9TVWosyquX1YxNvKqBmgKJ2W0MVQCcCIiF
gXVkra8vs8NQ2lt8fHOlt+U=
=PP3G
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.