Mailinglisten-Archive |
This is a multi-part message in MIME format.
------=_NextPart_000_0041_01BF9CB8.D01C62E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ich habe ein Problem:
ich habe ein 2dimensionales Array und m=F6chte dieses auslesen. Es =
klappt aber nicht!
Hier der Code:
function print()
{
global $ausstst;
for($i =3D 0;$i <=3D sizeof($ausstst);$i++)
{
echo "Datensatz $i
Wert1: $ausstst[$i][wert1]
Wert2: $ausstst[$i][wert2]
Wert3: $ausstst[$i][wert3]
";
} =20
}
Wobei das Array per Formular =FCbergeben wird:
<input type=3Dtext name=3D"ausstst[0][wert1]">
<input type=3Dtext name=3D"ausstst[0][wert2]">
<input type=3Dtext name=3D"ausstst[0][wert3]">
<input type=3Dtext name=3D"ausstst[1][wert1]">
<input type=3Dtext name=3D"ausstst[1][wert2]">
<input type=3Dtext name=3D"ausstst[1][wert3]">
Ich hab schon alles m=F6gliche andere ausprobiert, es geht einfach =
nicht. Bitte helft mir!
------=_NextPart_000_0041_01BF9CB8.D01C62E0
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 face=3DArial size=3D2>Ich habe ein Problem:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ich habe ein 2dimensionales Array und =
m=F6chte dieses=20
auslesen. Es klappt aber nicht!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Hier der Code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>function =
print()<BR> {<BR> global=20
$ausstst;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> for($i =3D 0;$i <=3D=20
sizeof($ausstst);$i++)<BR> {<BR> echo =
"Datensatz=20
$i<BR> Wert1:=20
$ausstst[$i][wert1]<BR> &n=
bsp;=20
Wert2:=20
$ausstst[$i][wert2]<BR> &n=
bsp;=20
Wert3: $ausstst[$i][wert3]<BR>";<BR> } =20
<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Wobei das Array per Formular =
=FCbergeben=20
wird:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><input type=3Dtext=20
name=3D"ausstst[0][wert1]"><BR><input type=3Dtext=20
name=3D"ausstst[0][wert2]"><BR><input type=3Dtext=20
name=3D"ausstst[0][wert3]"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><input type=3Dtext=20
name=3D"ausstst[1][wert1]"><BR><input type=3Dtext=20
name=3D"ausstst[1][wert2]"><BR><input type=3Dtext=20
name=3D"ausstst[1][wert3]"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Ich hab schon alles m=F6gliche andere =
ausprobiert, es=20
geht einfach nicht. Bitte helft mir!</FONT></DIV></BODY></HTML>
------=_NextPart_000_0041_01BF9CB8.D01C62E0--
php::bar PHP Wiki - Listenarchive