I'm fairly new to php, trying to make some additions to vbb, and here is the code I have... the code that is below the s works during the post, but the code within the s doesn't (of course that is my code). I don't get errors though when I post.
Any help would be appreciated if you see what I'm doing wrong? I have added the columns of pubstros and pubs to the table user, and the values of each are set to 0.
// *****************************************************************************************
if ($ftpdata[puborstro]==1 OR $ftpdata[puborstro]==2) {
if ($ftpdata[puborstro]==1) {
$DB_site->query("UPDATE user SET pubstros='pubstros+1' WHERE userid='$bbuserinfo[userid]'");
} elseif ($ftpdata[puborstro]==2) {
$DB_site->query("UPDATE user SET pubs='pubs+1' WHERE userid='$bbuserinfo[userid]'");
}
}
// *****************************************************************************************
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}