Location: PHPKode > scripts > roundbase data interface > roundbase-data-interface/save.php
 <?php
 include ('config.php');
 ?>
 <?php
$data1 = strip_tags($data1);
$data2 = strip_tags($data2);
$data3 = strip_tags($data3);
?>
 
<?php  $dbh=mysql_connect ("localhost", "$user", "$pass") or die ('I cannot connect to the database because: ' . mysql_error());
 mysql_select_db ("$database");
 
   $query = "INSERT INTO  `data` (  `id` ,  `fld1` ,  `fld2` , `fld3`) 
VALUES (
'',  '$data1',  '$data2' , '$data3'
)";

 $result = mysql_query($query);
 ?>

<html>
<head><title>information has been entered</title>
		<link href="style.css" rel="stylesheet" type="text/css" media="all">
	</head>
<body bgcolor="#9c9c9c">
		<div align="center">
			<form id="FormName" action="(EmptyReference!)" method="get" name="FormName">
				<div align="center">
					<button name="buttonName" type="button" value="Close Window" onClick="window.close()">
						<div align="center">
								Close window</div>
					</button></div>
			</form>
		</div>
	</body>	
</html>
Return current item: roundbase data interface