Hallo,
ich habe ein kleines Problem. Ich möchte mehrere ForenID´s an die Datenbank übergeben.
Hier ein Auszug:
Es geht um $doforums = 15;
15 ist die ID des Forums und es funktioniert. Nehme ich mehrere ID`s wird nichts übergeben.
Was mache ich falsch?
Danke
ich habe ein kleines Problem. Ich möchte mehrere ForenID´s an die Datenbank übergeben.
Hier ein Auszug:
PHP-Code:
if ($tabid == 2)
{
$doforums = 15;
}
if (empty($title) OR empty($tabid))
{
print_cp_message($vbphrase['forum_forumtabs_missing_fields']);
}
else
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "forumid_forumtabs_tab
SET
title = '" . $db->escape_string($title) . "',
description = '" . $db->escape_string($description) . "',
active = '" . $active . "',
sticky = '" . $sticky . "',
displayorder = '" . $displayorder . "',
membergroupids = '" . $domembergroupids . "',
parentid = '" . $parentid . "',
forums = '" . $doforums . "',
image = '" . $db->escape_string($image) . "',
linktype = '" . $linktype . "',
type = '" . $type . "'
WHERE tabid = $tabid
");
15 ist die ID des Forums und es funktioniert. Nehme ich mehrere ID`s wird nichts übergeben.
Was mache ich falsch?
Danke
Kommentar