最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

一個用mysql_odbc和php寫的serach數(shù)據(jù)庫程序

 更新時間:2006年10月09日 00:00:00   作者:  
<html>  

<head>  
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
<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 "查詢結(jié)果:";  
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);  
?>  

///表結(jié)構  
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");  

相關文章

最新評論

泰来县| 于都县| 项城市| 清远市| 莱阳市| 尚义县| 隆林| 周至县| 平顶山市| 铅山县| 顺平县| 遂川县| 固阳县| 开封县| 蓬安县| 福海县| 云和县| 新龙县| 察哈| 柘荣县| 贺州市| 墨玉县| 桦甸市| 涟水县| 特克斯县| 巴彦县| 昌吉市| 雅江县| 瑞昌市| 榆社县| 安顺市| 丹东市| 新田县| 沧源| 东方市| 双鸭山市| 含山县| 襄垣县| 卢氏县| 平安县| 平泉县|