请教修改功能如何加啊实在是不会了,求帮忙
程序员文章站
2022-05-18 08:01:28
...
请问修改功能怎么加啊,实在是不会了,求帮忙。
这是我写的php代码,求修改功能,我实在是不会了。
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 0,30");
$result2 = mysql_query("select *
from mstemployeebasic where EmployeeSex='".$sex."'
");
mysql_close($db);
echo "
这是我写的php代码,求修改功能,我实在是不会了。
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 0,30");
$result2 = mysql_query("select *
from mstemployeebasic where EmployeeSex='".$sex."'
");
mysql_close($db);
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'] . " | ";
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论