将此信息添加到mysql数据库表中 [英] add this information to mysql database table

查看:96
本文介绍了将此信息添加到mysql数据库表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<body>
<center>
<h1>EMPLOYEE FORM</h1>
<table>


				        <form name="addemp" method="get" action=" ">
<tr><td>First name        </td><td>		<input type="text" name="first_name"></td></tr>
<tr><td>Last  name	     </td><td>     <input type="text" name="last_name"></td></tr>
<tr><td>Employee code     </td><td>    <input type="text" name="emp_code"></td></tr>
<tr><td>Salary   		  </td><td>     <input type="text" name="salary"></td></tr>
<tr><td>Age			      </td><td>     <input type="text" name="age"></td></tr>
<tr><td>Date of joining   </td><td>     <input type="text" name="date_of_joining"><table><tbody><tr><table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table></tr></tbody></table></td></tr>
<tr><td>Date of birth	  </td><td>     <input type="text" name="date_of_birth"><table><tbody><tr><table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table></tr></tbody></table></td></tr>
<tr><td>Department id     </td><td>     <input type="text" name="dept_id"><table><tbody><tr><table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table></tr></tbody></table></td></tr>
<tr><td>Manager id	      </td><td>     <input type="text" name="manager_id"><table><tbody><tr><table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table></tr></tbody></table></td></tr>
 				        <tr><td><label for="file">Attach ur bioa data:</label></td></tr>
                       <tr><td> <input type="file" name="file" id="file" /></td></tr>
                        <tr><td><input type="submit" name="add" value="ADD"/></td></tr>
				        </form>

</table></center>
</body>

推荐答案

kesavahariprasad,

首先使用名称emp和必填表字段创建您的MySql数据库,并创建一个具有配置详细信息的config.php文件并将其保存在同一目录中……并使用以下代码插入您的记录.


Hi kesavahariprasad,

First create your MySql database with name emp and required table field and create a config.php file with configuration details and save it in same directory......and use the below code to insert your records.


require_once("config.php");
if(isset(


_POST [''submit''])){ {
_POST[''submit''])){ {


first_name =
first_name=


这篇关于将此信息添加到mysql数据库表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆