显示问题! 两次打开时,HTML源代码肯定有变化了,不然怎么可能不一样 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我对比了一下,能够肯定的是:没有区别!问题会出现在哪里呢?(注:我的html里嵌套了PHP代码的) 你把两个页面的源代码(就是IE里面,查看-->源代码)比较一下,找出不同之处,再加以解决,既然显示有微小的差别,代码一定是有差别的 是用<script src="xxx.php"></script> 吗?也有可能是它的问题. :) <?php session_start(); if(!(session_is_registered("Manager_Name"))) header("location:../../login1.php"); include "userfuncs.php"; include "funcs.php"; include "db.inc.php"; global $job,$message,$startpage; if($job=="delete") { $query='delete from user where user_id='.$id; if($result=mysql_query($query)); $message='成功删除'; } ?> <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>用户管理模式</title><link href="main_style.css" rel="stylesheet" type="text/css"></head><body bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="22" align="center" bgcolor="#006699" class="px14-white"><font color="#FFFFFF">用户信息</font></td> </tr> <tr> <?php echo $message; $startpage=$startpage?$startpage:1; $usercount=getrownumber(); $pagesize=10; if($startpage>$usercount/10) { $pagesize=lastnumber($usercount); } $msgs=getmessage($startpage*10-10,$pagesize); ?> </tr> <tr> <td colspan="3" height="13"> <table width="100%" border="1" cellspacing="1" bordercolor="#666699" > <tr align="middle" class="c-5"> <td width="10%"><font color="#FFFFFF">用户编号</font></td> <td width="10%"><font color="#FFFFFF">用户名</font></td> <td width="20%"><font color="#FFFFFF">密码</font></td> <td width="40%"><font color="#FFFFFF">单位名称</font></td> <td width="10%"><font color="#FFFFFF">详细信息</font></td> <td width="10%"><font color="#FFFFFF">删除用户</font></td> </tr> <?php for($count=1;$count<=$msgs[0];$count++) { echo '<tr align="center">'; echo '<td width="10%">'; echo $msgs[$count]->user_id; echo '</td>'; echo '<td width="10%">'; echo $msgs[$count]->user_name; echo '</td>'; echo '<td width="20%">'; echo $msgs[$count]->user_password; echo '</td>'; echo '<td width="40%">'; echo TrimChinese($msgs[$count]->user_compname,34); echo '</td>'; echo '<td width="10%"><a href="userdetail.php?id='; echo $msgs[$count]->user_id; echo '" target="_self">详细信息</a></td>'; echo '<td width="10%"><a href="usermanagement.php?job=delete&id='; echo $msgs[$count]->user_id; echo '&startpage='; echo $startpage; echo '">删除用户</a></td>'; echo '</tr>'; } echo '</table> </td> </tr> <tr> <td colspan="3" height="16"> '; if($usercount>10) { echo '<p>'; for($i=1;$i<=$usercount/10+1;$i++) { echo ' <a href="usermanagement.php?startpage='; echo $i; echo '">'; echo $i; echo '</a>'; } } echo ' 共有用户'; echo $usercount; echo '位'; echo ' 当前页码'; echo $startpage; ?> </td> </tr> <tr> <td colspan="3" > </td> </tr> </table> </body> </html> <tr> <?php echo $message; $startpage=$startpage?$startpage:1; $usercount=getrownumber(); $pagesize=10; if($startpage>$usercount/10) { $pagesize=lastnumber($usercount); } $msgs=getmessage($startpage*10-10,$pagesize); ?> </tr> td在哪里? 谁能帮写一段php后台登陆?谢谢了 程序不执行$run = new $mod();就不执行啦!是什么原因 如何取得这样的参数呢?希望URL的形式是www.xxx.com/aaa/?para1 问个简单的循环问题 图片浮动对齐 用php在apache中执行系统命令时,系统是以什么用户去执行的? 网页跳转 大散分了!!!请问有主页的朋友!! 用time()的结果标示动态生成的文件行不行???? 如何将mysql的数据转换到sqlserver呢?非常感谢! 怎样才能在客户端创建,修改客户端的文件??? 请问用什么方法可以在安装了AcrobarReader情况下来下载PDF文件呢?
问题会出现在哪里呢?
(注:我的html里嵌套了PHP代码的)
session_start();
if(!(session_is_registered("Manager_Name")))
header("location:../../login1.php");
include "userfuncs.php";
include "funcs.php";
include "db.inc.php"; global $job,$message,$startpage;
if($job=="delete")
{
$query='delete from user where user_id='.$id;
if($result=mysql_query($query));
$message='成功删除';
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户管理模式</title>
<link href="main_style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" align="center" bgcolor="#006699" class="px14-white"><font color="#FFFFFF">用户信息</font></td>
</tr>
<tr>
<?php
echo $message;
$startpage=$startpage?$startpage:1;
$usercount=getrownumber();
$pagesize=10;
if($startpage>$usercount/10)
{
$pagesize=lastnumber($usercount);
}
$msgs=getmessage($startpage*10-10,$pagesize);
?>
</tr>
<tr>
<td colspan="3" height="13">
<table width="100%" border="1" cellspacing="1" bordercolor="#666699" >
<tr align="middle" class="c-5">
<td width="10%"><font color="#FFFFFF">用户编号</font></td>
<td width="10%"><font color="#FFFFFF">用户名</font></td>
<td width="20%"><font color="#FFFFFF">密码</font></td>
<td width="40%"><font color="#FFFFFF">单位名称</font></td>
<td width="10%"><font color="#FFFFFF">详细信息</font></td>
<td width="10%"><font color="#FFFFFF">删除用户</font></td>
</tr>
<?php
for($count=1;$count<=$msgs[0];$count++)
{
echo '<tr align="center">';
echo '<td width="10%">';
echo $msgs[$count]->user_id;
echo '</td>';
echo '<td width="10%">';
echo $msgs[$count]->user_name;
echo '</td>';
echo '<td width="20%">';
echo $msgs[$count]->user_password;
echo '</td>';
echo '<td width="40%">';
echo TrimChinese($msgs[$count]->user_compname,34);
echo '</td>';
echo '<td width="10%"><a href="userdetail.php?id=';
echo $msgs[$count]->user_id;
echo '" target="_self">详细信息</a></td>';
echo '<td width="10%"><a href="usermanagement.php?job=delete&id=';
echo $msgs[$count]->user_id;
echo '&startpage=';
echo $startpage;
echo '">删除用户</a></td>';
echo '</tr>';
}
echo '</table>
</td>
</tr>
<tr>
<td colspan="3" height="16"> ';
if($usercount>10)
{
echo '<p>';
for($i=1;$i<=$usercount/10+1;$i++)
{
echo ' <a href="usermanagement.php?startpage=';
echo $i;
echo '">';
echo $i;
echo '</a>';
} }
echo ' 共有用户';
echo $usercount;
echo '位';
echo ' 当前页码';
echo $startpage;
?>
</td>
</tr>
<tr>
<td colspan="3" > </td>
</tr>
</table>
</body>
</html>
<?php
echo $message;
$startpage=$startpage?$startpage:1;
$usercount=getrownumber();
$pagesize=10;
if($startpage>$usercount/10)
{
$pagesize=lastnumber($usercount);
}
$msgs=getmessage($startpage*10-10,$pagesize);
?>
</tr> td在哪里?