Mailinglisten-Archive |
Am Thu, 08 Jun 2000 schrieben Sie:
> Hi Andreas,
>
> mach das doch so:
>
> $result = mysql_query("SELECT * from kategorien");
> for ($i=0; $i < mysql_num_rows($result); $i++)
> {
> $tmp = "\$kat_id".$i;
> ${$tmp} = "irgend_ein_wert";
> }
>
> Vielleicht nicht gerade elegant, ich würde eher einen Array
> benutzen, aber jedem das seine.
Das funzt nicht, es wird zwar der richtige Name $kat_id2 angezeigt, in
der Variable ist aber nix drin, wenn man aber vorher $kat_id2 abfragt,
ist was drin. Irgendwie wird anscheinend der Inhalt zerstört. Mit dem Array hab
ich auch schon probiert, das kommt aber anscheinend nicht rüber wenn ich <input
type=\"checkbox\" name=\"kat_id[$i]\"> verwende. Wie würdest Du das machen?
--
Mit freundlichen Grüßen
Andreas Korinek
info_(at)_bonsai-welt.de
===========================================================================
Microsoft is a cross between The Borg and the Ferengi. Unfortunately they
use Borg to do their marketing and Ferengi to do their programming.
Simon Slavin, in the Monastery.
===========================================================================
php::bar PHP Wiki - Listenarchive