setFrom() method in DB_DataObjects
| From: | David Dahl | Date: | Wed, 05 Feb 2003 17:06:13 +0000 |
| Subject: | setFrom() method in DB_DataObjects | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3611@lists.php.net to get a copy of this message | ||
What am i doing wrong with the setFrom() method?
$updateAssoc = new DataObjects_Association;
$updateAssoc->get($_POST[assoc_id]); //<--Primary ID
$updateAssoc->setFrom($_POST['input']); <--Post VARS
$updateAssoc->assoc_logo = $home_page_logo; <-- returned variable from another function
$updateAssoc->assoc_picture = $home_page_photo; <-- returned variable from another function
$updateAssoc->update();
$updateAssoc->setFrom($_POST['input']); <-- what does the 'input' mean i copied this straight from the docs, should it just be "$_POST[]" or "$_POST"?
The only data that gets updated is the $home_page_logo and $home_page_photo vars.
Thanks in advance,
David Dahl