<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查詢條件</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
& " /> 亚洲一区二区免费视频,欧美吞精做爰啪啪高潮,精品久久ai

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

一個用mysql_odbc和php寫的serach數據庫程序

<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 "查詢結果:";  
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");  

php技術一個用mysql_odbc和php寫的serach數據庫程序,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 湄潭县| 广西| 名山县| 泗洪县| 逊克县| 揭阳市| 清河县| 渭南市| 合肥市| 阳东县| 南漳县| 新河县| 美姑县| 通江县| 海阳市| 格尔木市| 炉霍县| 庐江县| 永和县| 镇宁| 凌云县| 岗巴县| 高淳县| 永寿县| 西盟| 晋江市| 江油市| 多伦县| 左权县| 垫江县| 莆田市| 讷河市| 东乡| 渝中区| 凭祥市| 固镇县| 合江县| 陇南市| 绥芬河市| 炉霍县| 西和县|