<?php session_start(); ?>
<html>
<head>
</head>
<body>
<?php
include ("../settings.php");
include ("../language/$cfg_language");
include ("../classes/db_functions.php");
include ("../classes/security_functions.php");
//creates 3 objects needed for this script.
$lang=new language();
$dbf=new db_functions($cfg_server,$cfg_username,$cfg_password,$cfg_database,$cfg_tableprefix,$cfg_theme,$lang);
$sec=new security_functions($dbf,'Admin',$lang);
//variables needed globably in this file.
$tablename="$cfg_tableprefix".'items';
$leistungen = "leistungen";
$field_names=null;
$field_data=null;
$id=-1;
$result = mysql_query("SELECT * FROM `leistungen` ",$dbf->conn);
echo mysql_error();
$anzahl = mysql_num_rows($result);
echo "Anzahl: ".$anzahl;
while($row=mysql_fetch_assoc($result))
{
$item_name = $row['bezeichnung'];
$field_names=array('item_name');
$field_data=array("$item_name");
$dbf->insert($field_names,$field_data,$tablename,true);
}
$dbf->closeDBlink();
?>
Fertig
</body>
</html>