search
HomeBackend DevelopmentPHP ProblemHow to implement personnel information search function in php

php method to implement the personnel information search function: 1. Create the conn.php file to connect to the personnel information database; 2. Create the index.php file; 3. Through "if(isset($_POST["flag" ])){...}" and other statements can be used to implement the personnel search function.

How to implement personnel information search function in php

The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.

How to implement personnel information search function in php?

PHP MySQL implements fuzzy query employee information function example

The details are as follows:

1. Code

Note two points:

1. When editing with Notepad, select the format: [Encoded Character Set]->[Chinese]->[gb2312]

2,

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

conn.php

<?php
$connID=mysql_connect("localhost","root","root");
mysql_select_db("db_database13", $connID);
mysql_query("set names gbk");
?>

index.php




<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
 查询企业员工的详细信息



查询企业员工的详细信息
按照员工的编号查询
编号 姓名 电话 地址

2. Running results

The encoding selected by the browser is gbk

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to implement personnel information search function in php. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.