如何在php中的2个选项卡中显示来自同一表的不同数据 [英] How to display different data from same table in 2 tabs in php

查看:87
本文介绍了如何在php中的2个选项卡中显示来自同一表的不同数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想在php中的2个不同选项卡中显示来自同一表的不同数据.当我选择负责人并在选项卡1中单击通知"时,它将被保存并显示在改善计划表中.但是,当我选择负责人并在选项卡2中单击通知"时,负责人将不会保存,也不会显示在Improvement_plan表中.请告知如何解决此问题.非常感谢.

< form action ="progress.php" method ="post" form name ="progress" id ="progress">

Hi everyone, I wanted to display different data from the same table in 2 different tabs in php. When i select the Responsible person and click Notify in tabs-1, it will be saved and displayed in the improvement_plan table. But when i select Responsible person and click Notify in tabs-2, Responsible person is not save and not display in the improvement_plan table. Please advise how to solve this matter. Thanks a lot.

<form action="progress.php" method="post" form name="progress" id="progress">


<输入type ="hidden" name ="Progressid" id ="Progressid" value =">

3.改进计划


<input type="hidden" name="Progressid" id="Progressid" value="">

3.Improvement Plan

团队负责人:<输入type ="text" readonly ="readonly" name ="Position" id ="Position" value =">

Team Leader:<input type="text" readonly="readonly" name="Position" id="Position" value="" >

No data.


mysql_close($con);
?>




<输入type ="hidden" name ="Progressid" id ="Progressid" value =">

3.改进计划


<input type="hidden" name="Progressid" id="Progressid" value="">

3.Improvement Plan

团队负责人:<输入type ="text" readonly ="readonly" name ="Position" id ="Position" value =">

Team Leader:<input type="text" readonly="readonly" name="Position" id="Position" value="" >

No data.


mysql_close($con);
?>


<输入类型=提交" name ="submit" id =提交" value =保存" class ="btnSubmit">

</form>


<input type="submit" name="submit" id="submit" value="Save" class="btnSubmit">

</form>

推荐答案

cn = mysql_connect("localhost","user",")或die(mysql_error());
mysql_select_db("pq",
cn=mysql_connect("localhost","user","") or die(mysql_error());
mysql_select_db("pq",


cn)或die(mysql_error());
cn) or die(mysql_error());


_SESSION ["Progressid"] =
_SESSION[''Progressid'']=


这篇关于如何在php中的2个选项卡中显示来自同一表的不同数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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