Array in Array aus Datenbank

Dustin84

Erfahrenes Mitglied
Hallo,

ich möchte gerne auf ein bestimmtes Feld in meiner DB zurückgreifen und es ändern.

Und zwar so:

PHP:
$ProfilbildID = $_POST['s']['Kontakt_Tel1'];

// In Datenbank schreiben
$result = mysql_query
("UPDATE
      matchtblWebUser
   SET
      Kontakt_Profilbild ='".$ProfilbildID."',
   WHERE
      ID = '".$AktuelleUserID."' ");

?>



Mein Ziel ist es bei
PHP:
[Kontakt_Profilbild] => Array
                (
                    [parentid] => 10210
                    [width] => 130
                    [height] => 130
                    [quality] => 8
                    [keepratio] => 1
                    [maximize] =>
                    [id] => 10212
                )

die [id] => 10212 zu ändern.

Hier nochmal der komplette Auszug der DB:

PHP:
Array
(
    [0] => 138
    [ID] => 138
    [1] => Jan
    [Username] => Jan
    [2] => janjan
    [Password] => janjan
    [3] =>
    [Anrede_Anrede] =>
    [4] =>
    [Anrede_Titel] =>
    [5] => Marcel
    [Forename] => Marcel
    [6] => Bartke
    [Surname] => Bartke
    [7] => Bärenweg 45a
    [Kontakt_Strasse] => Bärenweg 45a
    [8] => Hannover
    [Kontakt_Ort] => Hannover
    [9] =>
    [Kontakt_Bundesland] =>
    [10] =>
    [Kontakt_Land] =>
    [11] =>
    [Kontakt_Tel1] =>
    [12] =>
    [Kontakt_Tel2] =>
    [13] =>
    [Kontakt_Tel3] =>
    [14] => jan@jan.com
    [Kontakt_Email] => jan@jan.com
    [15] =>
    [Kontakt_Homepage] =>
    [16] => 0
    [LoginDenied] => 0
    [17] => 1245753751
    [MemberSince] => 1245753751
    [18] => 1246455676
    [LastLogin] => 1246455676
    [19] => 1246455676
    [LastAccess] => 1246455676
    [20] => 0
    [ParentID] => 0
    [21] => /Jan
    [Path] => /Jan
    [22] => 0
    [IsFolder] => 0
    [23] => customer.gif
    [Icon] => customer.gif
    [24] => Jan
    [Text] => Jan
    [25] => 0
    [Newsletter_Ok] => 0
    [26] =>
    [Newsletter_HTMLNewsletter] =>
    [27] =>
    [Gruppe] =>
    [28] => 1
    [Kontakt_freigeschaltet] => 1
    [29] => 17523
    [Kontakt_PLZ] => 17523
    [30] => 10212
    [Kontakt_Profilbild] => 10212
    [registered] => 1
    [imgtmp] => Array
        (
            [Profilbild] => Array
                (
                    [parentid] => 10210
                    [width] => 0
                    [height] => 0
                    [quality] => 8
                    [keepratio] => 1
                    [maximize] =>
                    [id] =>
                )

            [Kontakt_Profilbild] => Array
                (
                    [parentid] => 10210
                    [width] => 130
                    [height] => 130
                    [quality] => 8
                    [keepratio] => 1
                    [maximize] =>
                    [id] => 10212
                )

        )

)

Wie würde das gehen ?

Gruß
D.
 
Zurück