Home > php教程 > php手册 > PHP和MYSQL联合打造简单留言本程序

PHP和MYSQL联合打造简单留言本程序

WBOY
Release: 2016-06-21 09:01:04
Original
838 people have browsed it

数据库结构:(库名:lyb)
表一: admin
字段: id(int11)   name(varchvr)   password(varchvr)

表二: lo
字段: id(int11)   username(varchvr)  sex(varchvr)  qq(varchvr)  email(varchvr)  info(text)  ip(varchvr)  submit_time(datetime)

1 conn.php(连接数据库文件)

mysql_connect("localhost","root","");//连接数据库
mysql_select_db("lyb");//选择数据库
?>

2 header.php(公用头部文件)





PHP
Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template