Home > Backend Development > PHP Tutorial > 请教修改功能如何加啊实在是不会了,求帮忙

请教修改功能如何加啊实在是不会了,求帮忙

WBOY
Release: 2016-06-13 12:52:36
Original
839 people have browsed it

请问修改功能怎么加啊,实在是不会了,求帮忙。
这是我写的php代码,求修改功能,我实在是不会了。


Select Person


Select Person















ID:

Sex:
 Male
 Female




$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 0,30");

$result2 = mysql_query("select *
from mstemployeebasic where EmployeeSex='".$sex."'
");

  mysql_close($db);

echo "







";

while($row = mysql_fetch_array($result1))
  {
 echo "";
  echo "";
  echo "";
  echo "";
  echo "";
  if($sex == 1){
  echo "";
   } else
   echo "";
   ?>
  
  
  
  
  
  
      echo "";
  }

while($row = mysql_fetch_array($result2))
  {
  echo "";
  echo "";
  echo "";
  echo "";
EmployeeManagementID EmployeeCode EmployeeName EmployeeName_English EmployeeSex Button
" . $row['EmployeeManagementID'] . "" . $row['EmployeeCode'] . "" . $row['EmployeeName'] . "" . $row['EmployeeName_English'] . "" . $row['EmployeeSex'] = 'Male'. "" . $row['EmployeeSex'] = 'Female'. "

  
  

  
  
" . $row['EmployeeManagementID'] . "" . $row['EmployeeCode'] . "" . $row['EmployeeName'] . "
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template