大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> PHP专区 -> 一个用mysql_odbc和php写的serach数据库程序

一个用mysql_odbc和php写的serach数据库程序

时间: 2021-07-31 作者:daque

<html>  <head>  <meta http-equiv="content-type" content="text/html; charset=utf8">  <title>查问前提</title>  <meta name="generator" content="microsoft frontpage 3.0">  </head>  <body bgcolor="#fcf8c2">  <p>查问前提 </p>  <form action="searchyh.php" method="post">  <table border="1" width="43%" height="34">  <tr>  <td width="100%" height="28">用户称呼: <input type="text" name="name" size="20"></td>  <td width="100%" height="28">用户地方: <input type="text" name="add" size="20"></td>  <td width="100%" height="28">用户电话: <input type="text" name="tel" size="20"></td>  </tr>  </table>  <p><input type="submit" value="提交查问"> </p>  </form>  </body>  </html>  //后盾php  <?php  echo "<body bgcolor=’#fcf8c2’>";  echo "查问截止:";  echo " ";  echo " ";  $conn = odbc_connect("blue", "root", "");  $name .="%";  $add .="%";  $tel .="%";  $query = "select * ";  $query .= "from jc_yh where (name like ’$name’ and address like’$add’ and tel like ’$tel’ )";  odbc_result_all( odbc_do($conn, $query), "border=1 width=50%");  odbc_close($conn);  ?>  ///表构造  create table jc_yh (  id int not null default 0,  name varchar(80) not null default "blue",  city varchar(40) not null default "xn",  tel varchar(14) not null default "00000000000000",  fax varchar(14) not null default "00000000000000",  address varchar(60) not null default "xn",  post varchar(6) not null default "000000");  

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.