⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.php

📁 我不介意你怎么用这个程序
💻 PHP
字号:
<?php
include("includes/fun_post.php");
include("includes/fun_data.php" );
include("includes/inc_var.php");
if(isset($_POST["sname"]))
	$name=h2t($_POST["sname"]);
else
	$name=""; 
DB($g_db_host, $g_db_name, $g_db_user, $g_db_password);
$db = new DBReader;
$sql = "SELECT * FROM `".$g_db_prefix."user` WHERE u_name LIKE '%".$name."%' ORDER BY u_ID";
$db->execute($sql);
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="includes/main.css" rel="stylesheet" type="text/css">
<title>星雨留言板</title>
<body  topmargin="0">
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
  <tr> 
    <th height="20"><a href="http://www.xxiyy.com">回到首页</a></th>
    <th><a href="mailto:mikespook@163.com">联系站长</a></th>
    <th><a href="http://www.xxiyy.com/phpBB2/">进入论坛</a></th>
    <th><a href="login.php">进入管理</a></th>
  </tr>
</table>
<p>
<?php
if($db->count()==0)
{
?>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
  <tr> 
    <th width="594" height="20">未找到符合条件的记录!</th>
  </tr>
</table>
<?php
}else{
?>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
  <tr> 
    <th height="20" colspan="2">共有符合条件的记录<?php echo $db->count();?>条</th>
  </tr>
  <tr> 
    <th width="120" height="20">用户名</th>
    <th width="518">地址</th>
  </tr>
  <?php
while($dbrow = $db->reader())
{
?>
  <tr> 
    <td height="20" align="center"> 
      <?php echo "<a href=\"".$g_url."index.php?id=".$dbrow["u_ID"]."\">".$dbrow["u_name"]."</a>"?>
    </td>
    <td><input name="textfield" type="text" class="textbox" value="<?php echo $g_url;?>index.php?id=<?php echo $dbrow["u_ID"]?>" size="80" onmouseover=this.focus() onfocus=this.select()></td>
  </tr>
  <?php
}
?>
</table>
<?php
}
?>
<form action="search.php" method="post" name="search" id="search">
  <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
    <tr> 
      <th height="20" colspan="2">如果没有找到您所需要的信息,请重新修改查询条件。</th>
    </tr>
    <tr> 
      <td width="280" height="20" align="right">注册时使用的用户名:</td>
      <td width="358"><input name="sname" type="text" class="textbox" id="sname" value="<?php echo $name?>">
        <input type="submit" name="Submit3" value="搜索" class="button"></td>
    </tr>
  </table>
</form>
<p>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
  <tr> 
    <td height="20" align="center">Powered by <a href="http://www.xxiyy.com">mikespook 
      &amp; swill</a> (C) 2002, 2003 mikespook &amp; swill</td>
  </tr>
  <tr> 
    <td height="20" align="center">星雨留言板-PHP Version: <?php include("includes/inc_ver.php");echo $g_version;?></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -