Location: PHPKode > projects > Katropine DBmanager > dbmanager/textarea.php
<?php

$econfig['export_type'] = $_POST['extype'];
$econfig['table'] = $_POST['tablename'];
switch($_POST['extype']){
//**sql:
	case 'SQL':
		$econfig['drop_table'] = ($_POST['dt'] == "1")? true:false;
		$econfig['if_not_exist'] = ($_POST['ine'] == "1")? true:false;
		$econfig['auto_increment'] = ($_POST['autoincrement'] == "1")? true:false;
	break;
//**csv:
	case 'CSV':
		$econfig['fields_teriminated'] = $_POST['fields_teriminated'];
		$econfig['fields_enclosed'] = $_POST['fields_enclosed'];
		$econfig['fields_escaped'] = $_POST['fields_escaped'];
		$econfig['lines_teriminated'] = $_POST['lines_teriminated'];
		$econfig['replace_null'] = $_POST['replace_null'];
		$econfig['fields_first_row'] = ($_POST['fields_first_row'] == "1")? true:false;
	break;
}
?>
<table width="100%" cellpadding="2" cellspacing="0" border="0"  class="default">
<tr class="tbl_title"> 
	<td id="borders">SQL dump:</td>
</tr>
<tr>
	<td id="borders" width="50" valign="top">

<textarea rows="30" style="width:100%; padding:0px; margin:0px; font-family: Courier New, Courier, mono;" wrap="off">
<?php echo Mysql_Export::__data($econfig);?>
</textarea>

	</td>
</tr>
<tr>
	<td id="borders" align="right">
		<input type="button" value="Back" class="button" onclick="javascript:window.location ='<?php echo $root."table=".$tablename;?>';"/> 
	</td>
</tr>
</table>
Return current item: Katropine DBmanager