Posted by Ivαn Sαnchez Ortega on 12/29/05 19:08
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Leszek wrote:
> while($wiersz=mysql_fetch_array($wynik,MYSQL_ASSOC))
> {
> echo "<option value=$wiersz>$wiersz</option> <br />";
> }
Try something like
$value = $wiersz[$kolumna];
echo "<option value='$value'>$value</option> <br />";
(remember to enclose the value parameter of the <option> tag in quotes, or
your XHTML code will be invalid)
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDtBgq3jcQ2mg3Pc8RAlVWAJ9iY0kHAQjAkLrG8QStj2v3dLLKQACeKV5i
7kYsmBjlAT92TX1ejcCcpqw=
=ehjI
-----END PGP SIGNATURE-----
[Back to original message]
|