Perdonami l'ignoranza...
con questo codice:

// Include needed files
if (isset($_SESSION['aid']))
{
if (isset($_POST['a_key'])) {

$actkey = doQuery("INSERT INTO item_key (act_key,wasted,points) VALUES ('$act_key','0','.$points.')", DATABASE_WEBSITE); LINEA 31


if(mssql_num_rows($actkey) == 0) LINEA 34
{
$oSmarty->assign('message', array( 'type' => 'error',
'messages' => array( 'Error key' ) ) );
}
else
{
$oSmarty->assign('message', array( 'type' => 'ok',
'messages' => array( 'Your key has been succesful actived!' ) ) );
}
}
}
else
{
$oSmarty->assign('message', array( 'type' => 'error',
'messages' => array( 'Please log-in to acces this feature!.' ) ) );
}

ottengo il seguente errore:

Notice: Undefined variable: act_key in C:\xampp\htdocs\sitopower\pages\mall\inc.key.php on line 31

Notice: Undefined variable: points in C:\xampp\htdocs\sitopower\pages\mall\inc.key.php on line 31

Warning: mssql_num_rows(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\sitopower\pages\mall\inc.key.php on line 34