<? session_start(); ?>
<? if($dane!="ok") {echo "<h4>You dont heave premision to see this page</h4></body></html>"; exit;} ?>
<?
include "conf.php";
include "addpuszbaza.php";
$file = $url.$nzw;
$names = columnnames_pb($file);
addcolumn_pb($file,"index","yes");
for($i = 0; $i < count($data); $i++)
{
if(eregi(";", $data[$i])) {echo "Field can't contain semicolons. Please return and choose other name"; exit(); }
}
for($i = 0; $i < count($data); $i++)
{
update_pb($file,"index","x == $andi",$names[$i], $data[$i]);
}
delcolumn_pb($file,"index");
header("Location: showtable.php?nzw=$nzw&na=$na");
?>