Location: PHPKode > scripts > phpPuszAdmin > phppuszadmin/phpPuszAdmin/createtable.php
<? 
include "g-szablon.php";


if(eregi(" ", $nazwa)) {echo "Table name can't contain spaces. Please return and choose other name"; exit(); }
if($nazwa=="") {echo "Table name can't be empty. Please return and choose other name"; exit(); }

?>


Remember column names can't contain spaces or special characters like ";"<br>
<br>
Create table <b><? echo $nazwa; ?></b>
<FORM ACTION="createtable_write.php" METHOD="POST">
<TABLE border="0" width="200">
<tr>
	<td bgcolor="#00a8ff"><br></td>
	<td bgcolor="#00a8ff"><B>Names of columns</B></td>
</tr>
<?
for ($i=1;$i<$ile+1;$i++)
	{
	?>
<tr>
	<td width="20"><? echo $i ?>)</td>
	<td><INPUT TYPE='TEXT' NAME='colnam[]' ></td>
</tr>
	<?
	}
?>
<tr>
	<td colspan=2 bgcolor=#00a8ff align=center>
	<INPUT TYPE="SUBMIT" VALUE="Create">
	</td>
</tr>
</TABLE>

<INPUT TYPE="HIDDEN" NAME="nazwa" VALUE="<? echo $nazwa ?>">
</FORM>

<? include "d-szablon.php" ?>
Return current item: phpPuszAdmin