phpbar.de logo

Mailinglisten-Archive

[php] Fehlermeldung im sql-INSERT

[php] Fehlermeldung im sql-INSERT

Ulrich Wiederhold wubuwei at gmx.net
Don Jul 7 21:40:35 CEST 2005


Hallo,
ich bekomme folgende Fehlermeldung:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in addphotos.php on
line 270

Die sql-Anweisung:

foreach($result as $photo) {

mysql_query("INSERT INTO photos (
           photo_titel,
           photo_desc,
           photo_date,
           photo_path,
           thumbnail_path,
           photo_file,
           thumbnail_file,
           album_id,
           gal_id,
           subgal_id,
           camera,
           time,
           aperture,
           focal_length,
           flash_used,
           iso_equiv,
           resolution)
       VALUES (
          '$photo['photo_titel']',
          '$photo['photo_titel']',
          '$photo['photo_date']',
          '$photo_path',
          '$thumbnail_path',
          '$photo_file',
          '$photo_file',
          '$nav_album[$kat_third]['album_id']',
          '$nav_album[$kat_third]['gal_id']',
          '$nav_album[$kat_third]['subgal_id']',
          '$photo['camera']',
          '$photo['time']',
          '$photo['aperture']',
          '$photo['focal']',
          '$photo['flashUsed']',
          '$photo['isoEquiv']',
          '$photo['resolution']')                        
        ");
} //foreach


Woran liegt das?
Gruß
Uli

php::bar PHP Wiki   -   Listenarchive