I called the textarea field :
name="caption" value="$attach[caption]"
and in functions_newpost.php, I did:
Quote:
// now update the attachments .. if we have any visible OR not, otherwise the hourly cleanup will wipe them out
if ($totalattachments)
$caption = '';
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "attachment
SET postid = $post[postid], posthash = '', caption = $attach[caption]
WHERE posthash = '" . addslashes($post['posthash']) . "'
AND userid = $bbuserinfo[userid]
");
|
That gives me a database error