Location: PHPKode > scripts > roundbase data interface > roundbase-data-interface/install2.php

<link href="style.css" rel="stylesheet" type="text/css" media="all">
<style type="text/css" media="screen"><!--
.default { font-family: "trebuchet ms"; }
a:link { color: blue ; text-decoration: none; }
a:visited { color: #00f ; text-decoration: none; }
a:hover { color: #008000 ; text-decoration: none; }
a:active { color: red ; }
--></style>
<title>Install page 2</title>


<body bgcolor="#9c9c9c">
	<p><?php include "header.php" ?></p>
	<?php
 include ('config.php');
 ?>
	<p><?php
$dbh=mysql_connect ("localhost", "$user", "$pass") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("$database");
$query = 'CREATE TABLE data (fld1 TEXT NOT NULL, fld2 TEXT NOT NULL, fld3 TEXT NOT NULL, 
id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY ( id))';
$result = mysql_query($query);
?></p>
	<form id="myform" action="install3.php" method="post" name="myform">
		<div align="center">
			<div class="default">
				<h3>Field 1<br>
					<input type="text" name="fld1" size="24"></h3>
				<p>Field  2<br>
					<input type="text" name="fld2" size="24"></p>
				<p>Field 3<br>
					<input type="text" name="fld3" size="24"><br>
				</p>
				<p>Title on pages<br>
					<input type="text" name="title" size="24"></p>
				<p><button name="buttonName" type="submit">Set titles</button></p>
			</div>
		</div>
	</form>
	<p></p>
</body>




Return current item: roundbase data interface