phpbar.de logo

Mailinglisten-Archive

[php] arrays in if

[php] arrays in if

Daniel Rowe php_(at)_phpcenter.de
Thu, 3 May 2001 16:54:50 +0200


Wie w=E4rs damit (UNTESTED !)?

while($row =3D mysql_fetch array($res)) {
	$ok =3D true;
	for ($i=3D0;$i<4;$i++) {=09
		if ($row["warengruppe"] !=3D $nettogruppe[$i]) {
			$ok =3D false;
			break;
		}
	}
	if ($ok)=20
	{ ...rechne brutto } else { rechne netto... }
	}
}

Gru=DF

Daniel
--=20
Daniel Rowe
daniel.rowe_(at)_prosales-europe.com
ProSales Europe Media GmbH


php::bar PHP Wiki   -   Listenarchive