$a='';
$fp = fopen("test.sql", 'r');
while (!feof($fp)) {
$char = fgetc($fp);
while ($char != ',') {
$a .= $char;
$char = fgetc($fp);
}
print "$a,
";
}
?>
$sql = sprintf("INSERT INTO %s VALUES (%s, %u)", $xoopsDB->prefix("cervex_config"), 'config', 1);
$xoopsDB->query($sql);
redirect_header("index.php", 3, _NOPERM); header("Location: index.php");