hallo!
With reference to Dawn H on 04.07 00:36:
> The error log says,
>
> Can't call method "do: on an undefined value. . .
>
> But the EXACT SAME code works on another script I'm running. I don't see any
> reason for it to suddenly have a problem. What does this error message MEAN?
>
> ----Code Snippet------
> # Form was okay; get image type and contents and create new record.
> # Use REPLACE to clobber any old image with the same name.
>
> $mime_type = uploadInfo ($image)->{'Content-Type'};
> ($full, $thumb) = read_image_file ($image);
> $dbh->do ("REPLACE INTO image
> (name,listing_id,image,thumbnail,mime_type)
> VALUES(?,?,?,?,?)",
> undef,
> $name, $listing_id, $full, $thumb, $mime_type)
> or bail_out("There's a problem with the upload");
i have it with (). like ($name), ($listing_id), ...
> -----End Snippet-------
>
> http://www.rdcss.com/ - R&D Computer Solutions
> http://wow.cooncheese.com/ - WOW.CoonCheese.com
> http://dpenguin.rdcss.com/ - Cornucopia
> Filter fixer: database,sql,query
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
--
Gruß & bye
Michael Ott
---------------------------------
- Siemens AG - I&S IT PS 51 ERL -
- Werner-von-Siemens-Strasse 60 -
- 91050 Erlangen -
- Tel. +49 91 31 7 42 0 54 -
- [EMAIL PROTECTED] -
---------------------------------
open-source and you have much fun
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php