Could you please help me to add the modified function?

Source: Internet
Author: User
Could you tell me how to add the modified function? no, so please help. This is the php code I wrote. if you want to modify the function, I will not. & Lt; html & gt; & lt; head & gt; & lt; title & gt; Select & nbsp; Person & lt;/title & gt; & lt; /head & gt; could you tell me how to add the modification function? No. please help.
This is the php code I wrote. if you want to modify the function, I will not.


Select Person


Select Person

$ Submit = $ _ POST ['submit '];
$ Id = $ _ POST ['id'];
$ Sex = $ _ POST ['Sex '];
$ Row [] = $ _ POST ['row'];
$ Db = mysql_connect ("localhost", "root", "root ");
If (! $ Db)
{
Die ('could not connect: '. mysql_error ());
}
Mysql_select_db ("aa", $ db );

$ Result1 = mysql_query ("select *
From mstemployeebasic where EmployeeManagementID = '". $ id." 'limit ");

$ Result2 = mysql_query ("select *
From mstemployeebasic where EmployeeSex = '". $ sex ."'
");

Mysql_close ($ db );

Echo"

EmployeeManagementID
EmployeeCode
EmployeeName
EmployeeName_English
EmployeeSex
Button
";

While ($ row = mysql_fetch_array ($ result1 ))
{
Echo"";
Echo"". $ Row ['ployeemanagementid']."";
Echo"". $ Row ['employeecode']."";
Echo"". $ Row ['ployeename']."";
Echo"". $ Row ['ployeename _ ename']."";
If ($ sex = 1 ){
Echo"". $ Row ['employeesex '] = 'male '."";
} Else
Echo"". $ Row ['employeesex '] = 'female '."";
?>


Echo"";
}

While ($ row = mysql_fetch_array ($ result2 ))
{
Echo"";
Echo"". $ Row ['ployeemanagementid']."";
Echo"". $ Row ['employeecode']."";
Echo"". $ Row ['ployeename']."";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.