Here is what I am trying to do:
$UPDATE_COMPANY_STRING = "ccompStreet = ?"; $UPDATE_COMPANY_VALUE_STRING = "\$tmpccompStreet"; $sql="UPDATE clientcomp SET $UPDATE_COMPANY_STRING WHERE ccompid = ?"; $sthUpdate = $dbh->prepare($sql); $sthUpdate->execute($UPDATE_COMPANY_VALUE_STRING, $tmpstcompid); Obviously there are many more fields that _may_ be added to the 2 variables that are in all caps (I only showed 1 for simplicity). I only add the fields that need to be updated to those 2 variables. It does what I expect it to do except for the last line. I want the $UPDATE_COMPANY_VALUE_STRING to be expanded to the actual string it contains before the "execute" is run. I've tried a bunch of different ways to make it happen - all to no avail. I either get errors or end up with "$tmpccompStreet" in the database (instead of the value that $tmpccompStreet contains). Hopefully it's clear what I'm trying to accomplish here. Please be kind - I'm relatively new to pl/sql :) Thanks, Steve Confidentiality Notice: The material in this e-mail is intended only for the use of the individual to whom it is addressed and may contain information that is confidential, privileged, and exempt from disclosure under applicable law. If you are not the intended recipient, be advised that the unauthorized use, disclosure, copying, distribution, or the taking of any action in reliance on this information is strictly prohibited. If you have received this e-mail in error, please immediately notify us at 866-335-3289 to arrange for the return of this material to us. Thank You.
