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

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

 更新時(shí)間: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>  

//后臺(tái)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é)構(gòu)  
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");  

相關(guān)文章

最新評(píng)論

合作市| 刚察县| 嵩明县| 无为县| 开江县| 洛扎县| 松滋市| 大田县| 稻城县| 怀化市| 新建县| 铁岭市| 沽源县| 迁西县| 玉门市| 大渡口区| 岑溪市| 福安市| 敦化市| 获嘉县| 建平县| 景泰县| 富川| 阿鲁科尔沁旗| 浦东新区| 海城市| 兰州市| 砀山县| 阿勒泰市| 峨边| 碌曲县| 福清市| 贞丰县| 南江县| 柏乡县| 万盛区| 湘西| 古丈县| 锡林浩特市| 务川| 定远县|