08-28-2005, 06:10 PM
|
#1 |
Join Date: Oct 2004 Real Name: Matti Location: Mechelen | creating Function in SA fxppack | | I am trying to create a few extra addons in my lockdown of SA
and also a new function
but it doesn't seem to work
can someone check the code and tell me meaby ?
in function_fxppack.php
function addmb($pubsize) {
global $DB_site;
$sql = "
UPDATE user
SET pubtotal + '$pubsize'
WHERE userid = '$bbuserinfo[userid]'
";
$data = $DB_site->query_first($sql);
return $data;
}
and in newthread.php
if ($newpost['pubsize']!="")
{
addmb($newpost['pubsize']);
}
| |