Nein , leider hat das nix geholfen.
Code: Alles auswählen
$db->sql_transaction('begin');
$sql = "UPDATE twc_de_topics
SET star = $star
WHERE topic_id = " $topic;
$db->sql_query($sql);
$sql = "UPDATE twc_de_topics
SET feed = $feed
WHERE topic_id = " $topic;
$db->sql_query($sql);
$db->sql_transaction('commit');
In derZeile vom oberen Topic ist Zeile 62:
Code: Alles auswählen
Parse error: syntax error, unexpected T_VARIABLE in /var/www/vhosts/twcmail.de/httpdocs/de/star.php on line 62
Ich weiß nicht warum der fehlerda ist.
wenn ich
Code: Alles auswählen
$db->sql_transaction('begin');
$sql = "UPDATE twc_de_topics
SET star = $star
WHERE topic_id = $topic ";
$db->sql_query($sql);
$sql = "UPDATE twc_de_topics
SET feed = $feed
WHERE topic_id = $topic ";
$db->sql_query($sql);
$db->sql_transaction('commit');
Dann kommt nur:
SQL ERROR [ mysql4 ]
Unknown column '$topic' in 'where clause' [1054]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Ich hoffe jemand kann damit was anfangen,
danke im vorraus...