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");
-----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