国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > MySQL > 正文

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

2024-07-24 12:56:47
字體:
供稿:網(wǎng)友
<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");  
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 九江市| 调兵山市| 镇坪县| 南川市| 如东县| 衡东县| 招远市| 抚远县| 胶州市| 兴安盟| 个旧市| 长兴县| 平定县| 昆明市| 教育| 乌兰察布市| 抚顺县| 塘沽区| 福清市| 枣阳市| 永登县| 平南县| 石楼县| 宝丰县| 常德市| 龙南县| 清丰县| 新民市| 常宁市| 承德市| 仲巴县| 平和县| 共和县| 惠来县| 弥勒县| 冕宁县| 射洪县| 汕头市| 绥棱县| 隆子县| 茶陵县|