当前位置:Gxlcms > PHP教程 > 请教修改功能如何加啊实在是不会了,求帮忙

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

时间:2021-07-01 10:21:17 帮助过:22人阅读

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


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 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'] . "