Name: o 2010-07-02 3:42
I'm new to programming.
So far I have this bit:
if (!$error)
{
$char = new rs_character($name, $cache);
$timer = microtime_float();
$error = !$char->load(false);
$timer = microtime_float() - $timer;
$total_time += $timer;
}
Now how can I add this line into this bit? If error arises I need to delete the entry from thedatabase
$highscores->remove($name)
So far I have this bit:
if (!$error)
{
$char = new rs_character($name, $cache);
$timer = microtime_float();
$error = !$char->load(false);
$timer = microtime_float() - $timer;
$total_time += $timer;
}
Now how can I add this line into this bit? If error arises I need to delete the entry from thedatabase
$highscores->remove($name)