A serach database program written using mysql_odbc and php

Source: Internet
Author: User
Tags microsoft frontpage
A serach database program written using mysql_odbc and php



Query conditions





Query conditions







// Backend PHP
Echo"";
Echo "query result :";
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 );
?>

/// Table structure
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 ");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.