Probier mal statt
$a = $DB->query('INSERT INTO shoutbox (ip,text,name,date,time) VALUES ("'.$ip.'","'.$text.'","'.$name.'","'.$date.'","'. $time.'")');
$a=$DB->query("INSERT INTO shoutbox (ip, text, name, date, time) VALUES ('$ip', '$text', '$name', '$date', '$time')");
Wenn das nicht geht...