GuestBook import
Incorrect image Id
';
}
else
{
$query = '
SELECT * FROM '.COMMENTS_TABLE.'
WHERE image_id = '.$_POST['image_id'].'
;';
$comms = hash_from_query($query, 'id');
if (!count($comms))
{
echo 'No comments for this picture
';
}
else
{
mass_inserts(
GUESTBOOK_TABLE,
array('date', 'author', 'author_id', 'anonymous_id', 'email', 'website', 'content', 'rate', 'validated', 'validation_date'),
$comms
);
echo ''.count($comms).' comments imported into the Guestbook
';
$show_form = false;
}
}
}
if ($show_form)
{
?>
Just enter the id of your old guestbook picture (the Id can be found a the picture edition page, near the thumbnail) and click the import button.
Go back