<?php
require ("functions.inc.php");
$SESSID_USERNAME = check_session ();
if ($_SERVER["REQUEST_METHOD"] == "GET")
{
//include ("../../templates/header.tpl");
include ("./tpl/showprofile.tpl");
//include ("./tpl/manage.tpl");
echo "<hr noshade size=0 color=#0080C0 width='100%'>";
$connect = mysql_con("coreinfo");
if (!$connect)
{
echo "数据库连接失败!<br>\n";
echo mysql_error();
exit;
}
else
{
$result = mysql_query("select account from user");
$rows = mysql_num_rows($result); //取得记录数量
echo "总用户数: $rows <br>";
echo "<table width='100%' align='left' border='1' cellpadding='0' cellspacing='0' class='BgTable' bordercolor='#6699CC' >";
echo "<tr><td class='style7' width=200 align='center'>用户名</td>
<td class='style7' width=200 align='center'>修改</td>
<td class='style7' width=200 align='center'>删除</td>";
echo "</tr>";
$row = mysql_fetch_row($result);
//输出每个用户的资料-姓名
while ($row)
{
$i=0;
echo "<tr>";
echo "<td class='style2' align='center'> $row[$i] </td>";
echo "<td class='style7' width=200 align='center'><a href='javascript:modify()'>修改</a></td>";
echo "<td class='style7' width=200 align='center' ><a href='javascript:delete(s)'>删除</a></td>";
echo "</tr>";
$i++;
$row=mysql_fetch_row($result);
}
}
echo "</table>";
echo " </BODY>";
echo "</HTML>";
}
?>
想调用modify()和delte()这个函数怎么调用
再下面直接加什么?
require ("functions.inc.php");
$SESSID_USERNAME = check_session ();
if ($_SERVER["REQUEST_METHOD"] == "GET")
{
//include ("../../templates/header.tpl");
include ("./tpl/showprofile.tpl");
//include ("./tpl/manage.tpl");
echo "<hr noshade size=0 color=#0080C0 width='100%'>";
$connect = mysql_con("coreinfo");
if (!$connect)
{
echo "数据库连接失败!<br>\n";
echo mysql_error();
exit;
}
else
{
$result = mysql_query("select account from user");
$rows = mysql_num_rows($result); //取得记录数量
echo "总用户数: $rows <br>";
echo "<table width='100%' align='left' border='1' cellpadding='0' cellspacing='0' class='BgTable' bordercolor='#6699CC' >";
echo "<tr><td class='style7' width=200 align='center'>用户名</td>
<td class='style7' width=200 align='center'>修改</td>
<td class='style7' width=200 align='center'>删除</td>";
echo "</tr>";
$row = mysql_fetch_row($result);
//输出每个用户的资料-姓名
while ($row)
{
$i=0;
echo "<tr>";
echo "<td class='style2' align='center'> $row[$i] </td>";
echo "<td class='style7' width=200 align='center'><a href='javascript:modify()'>修改</a></td>";
echo "<td class='style7' width=200 align='center' ><a href='javascript:delete(s)'>删除</a></td>";
echo "</tr>";
$i++;
$row=mysql_fetch_row($result);
}
}
echo "</table>";
echo " </BODY>";
echo "</HTML>";
}
?>
想调用modify()和delte()这个函数怎么调用
再下面直接加什么?
解决方案 »
- 如何禁止用软件批量下载
- 网站地图的www.w3.org可以改成其他的吗
- 如何在虚拟机2003下安装PHP开发环境,等软件,新手求教
- 急招PHP助理程序员(深圳) 待遇2K-4K 完全没有开发经验都可以,详细请看内容.
- 美女帅哥:怎样修改mysql中root的密码?
- 请教下面的 程序那里有问题,while老是进入死循环
- 一般注册名都是不分大小写的吧?
- 在使用div网页中,当中间div的body内容变动时,怎么使最下边的另一个div的内容连动呀?
- 特别郁闷的问题,请大家看看吧,快把我给急死了
- 高分求助,oracle存储大字段问题!
- 写入文件后缀!!斑竹帮忙啊,问好多次了每人回
- apache+php+mysql建站遇到的问题
如果php的function(大概不会吧 因为这里有个delete(s),显然不是php代码)建议改成这样
echo " <td class='style7' width=200 align='center'> <a href='javascript:".modify()."'> 修改 </a> </td> ";
echo " <td class='style7' width=200 align='center' > <a href='javascript:".delete(s)."'> 删除 </a> </td> ";