<?php
require("header_form.inc.php");
require("form_db.class.php");
$k_id=2;
$form= new form_db;
$form->action=$PHP_SELF;
$form->t_style="tablered";
$form->td_input_style="tf";
$form->tablewidth=300;
$form->button="button";
$form->submit="absenden";
$form->server="localhost";
$form->user="root";
$form->pw="";
$form->db="test";
$form->pwfield="passwd";
$form->query="select distinct name,vname,email,$form->pwfield from kunden where k_id=\"$k_id\"";
$form->descr="Name Vorname Email Password";
if(isset($name)){
$form->table="kunden";
$form->update($HTTP_POST_VARS,"k_id=\"$k_id\"");
echo "<p class=tableblue>database successfully updated</p>";
}
else
echo $form->create_form();
?>
</body>
</html>
|