Location: PHPKode > projects > 3TimeReport > timereport_0.61/create_customer.php
<?
//############################################################
//
// $Id: create_customer.php,v 1.5 2002/12/16 08:37:51 kling Exp $
//
//
//
//############################################################
require_once("./config.php");


$help_new_cust_name=get_help("help_new_cust_name");
$help_new_cust_dist=get_help("help_new_cust_dist");


if(isset($name))
{
	$sqlstr="insert into customers set name='$name',distance='$distance',createdate=now()";
	$result=mysql_query($sqlstr);
	if(mysql_errno())echo "<br>Mysql:".mysql_errno().": ".mysql_error()."<br>";
	$message="Customer created!";
	echo parsepage("./html/message.html");
}
else
{
	echo parsepage("./html/create_customer.html");
}

//
// $Log: create_customer.php,v $
// Revision 1.5  2002/12/16 08:37:51  kling
// replaced mysql_db_query with mysql_query
//
// Revision 1.4  2002/12/03 10:09:35  kling
// initial release for V 0.5
// eric joined team
//
//
//

?>
Return current item: 3TimeReport