Hi, i am not sure, but was/is there any reason why $sql_query is not always properly initilized? or is it just missing? i think it should happen in common.inc.php on line #429 with $GLOBALS['sql_query'] = ''; like it is done with $GLOBALS['db'] and $GLOBALS['table'] some lines above -- Sebastian Mendel www.sebastianmendel.de