Home > Backend Development > PHP Tutorial > PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial

PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial

WBOY
Release: 2016-07-13 16:58:33
Original
854 people have browsed it

1. What is PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial?
php is a great tool for developing dynamic websites.

2. Is PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial easy to learn?
It’s very easy, as long as you master a little C or C basics.

3. Why choose php?
Speed, ease of use, templates, etc.

4. What is the main thing to learn in PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial?
Templates and functions

5. What data devices are supported?
You know those ones, those are the ones

6. Why should I choose access?
Because access is simple and easy to operate in many cases, although mysql is recognized as No. 1, but since it is relatively unfamiliar to novices, access is good. In fact, my mysql level is not very good...

7. My characteristics:
Simple, practical, economical, xhtml., not designed with smarty technology {too complicated, I will talk about it later}, this time there is very little nonsense.

The main functions of my example are:
1: Post a message
2: Paging display
3: Can reply
4: Administrator edits and deletes
5: Support UBB
6: xhtml and some other simple tricks
7: Write when you remember

Look at the file directory first:

d:webphp
--
--------
------------------db.mdb {database}
---------
------------------common.js{commonly used js}
------------------ubbcode.js{js used by UBB click}
--------
------------------{The folder where ubb’s pictures are saved}
--------

Related source file download page: Click here to download the source file

Public all.css file:

*{margin:0;padding:0;}
body{FONT-FAMILY: Tahoma, MS Shell Dlg,betty, female; table-layout:fixed;
word-break:break-all; color: #000;line-height: 1.166;margin:0;padding: 0px;
background-color:#401F00;word-wrap: break-word;font-size:12px;}
a{color:#008;TEXT-DECORATION:none;font-weight:bold;}
a:hover{color:#009;TEXT-DECORATION:none;}
h5 {background-color:#00AEEF;padding:3px 10px;font-size:12px}

h4 {padding:5px 10px;background-color:#000080;font-size:12px;color:#fff;}
h4 a{color:#fff}
h4 a:hover{color:#b00;border-bottom:2px solid #fff}
#format_all{width:500px;padding:0;margin:auto;float:none;border:2px solid #000080;background-color:#fff}
#top_ul{background-color:#BBDDFF}
#top_ul p{padding:50px 0 5px 10px;height:30px;color:#b00;font-size:14.6px}
#top_ul ul{display:block;clear:both;background-color:#313A97;height:22px}
#top_ul ul li{list-style:none;float:left;padding:5px 3px;}
#top_ul ul li a{color:#b00;padding:0 5px;}
#top_ul ul li a:hover{color:#FFF100;border-bottom:2px solid #00AEEF;}
#show_c{background-color:#BBfbFF;padding:3px 0;}
#show_c h6{background-color:#00AEEF;padding:3px 10px;font-size:12px}
#show_c h6 a{color:#313A97}
#show_c h6 a:hover{color:#b00;border-bottom:2px solid #b00}
#show_c div{padding:5px 10px}
#show_c div sub{font-size:105%;color:#313A97;padding:2px 15px;display:block;float:none}
#show_c ul{padding:5px 10px 5px 20px;color:#E82B2B}
#show_c ul li{padding:5px 10px}

#show_c ul li a:hover{border-bottom:2px solid #FFF100;}
label {padding:2px 0 2px 20px;display:block}

#footer{background-color:#BBDDFF;padding:8px;font-weight:bold}
#footer a:hover{color:#b00;border-bottom:2px solid #00AEEF;}

When writing PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial code, ?> is the most commonly used. When commenting, use single line //Here is the comment , and multi-line comments / *Here are comments*/ Anything is fine.

php is mainly famous for functions and templates. It supports class continuation. It is necessary to master the array and template technology well, but there are many functions involved here. In the future, I will slowly introduce it to the novices. Regarding PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial development, the words "functions" and "modularization" can be well combined with xhtml. Template technology is very promising.

The depth I mentioned below refers to the number of if..else layers executed by the program, and one determination is one depth.

Please refer to detailed books or articles for related PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial library functions. Here we only talk about "how to use"

----->style/css.all You can also copy the above, but it is probably slower, hahaha...
Let’s talk about the database first:

Table php_guest, there is nothing to say, just look at the picture and you will know:

PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial

表php_admin,也没啥说的look here :

PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial

下面看看inc/config.php是怎么设置的:

ob_start();
$NowPathArray=explode("inc",str_replace("","/",dirname(__FILE__))) ;
@define("root_path", $NowPathArray[0]);
@define("confign_path", root_path . "inc/");
@define("db_path", root_path."data/db.mdb");
$scriptFullPath = $_SERVER["PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial_SELF"];
$scriptArray = split("/",$scriptFullPath);
//$myfilename = $scriptArray[sizeof($scriptArray)-2];
$myfilename = end($scriptArray);
$szd_title="我的留言版";
$page_size=5;
require_once(confign_path.'conn.php');
require_once(confign_path.'function.php');
?>

解释:


ob_start();//缓存开始,提高速度

$NowPathArray=explode("inc",str_replace("","/",dirname(__FILE__))) ;//强制将windows下"分隔符"转化为/

@define("root_path", $NowPathArray[0]);//定义本文件的上一位置,也就是定位到了跟目录下面.

@define("confign_path", root_path . "inc/");//定义整体配置文件夹

@define("db_path", root_path."data/db.mdb"); //定义数据库路径

$scriptFullPath = $_SERVER["PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Access Design Message Board Practical PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Learning Network_PHP Access Design Message Board Practical PHP Learning Network_PHP Tutorial Tutorial Tutorial_SELF"];//得到引用页文件的url地址.

$scriptArray = split("/",$scriptFullPath);//切割成数组

$myfilename = end($scriptArray);//得到本页名称

$szd_title="我的留言";//留言班的标题

$page_size=5; //每页的数目

require_once(confign_path.'conn.php'); //包含数据库文件,只一次

require_once(confign_path.'function.php');//包含公用函数库文件,只一次
?>

下面是inc/conn.asp的文件:

$conn = new COM('ADODB.Connection');
$accessdsn = "Driver={Microsoft Access Driver (*.mdb)};DBQ=".db_path.";Uid=;Pwd=;";
$conn->Open($accessdsn);
?>

解释:


$conn = new COM('ADODB.Connection'); //--------------->创建对象

$accessdsn = "Driver={Microsoft Access Driver(*.mdb)};DBQ=".db_path.";Uid=;Pwd=;";
//$accessdsn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=".db_path."";

//--------------->2中连接mdb数据库的字符串,都行,前者在asp里面不被推荐,在php里面似乎经常使用,c-blog是前者,我....

$conn->Open($accessdsn);//---------------> 实例

?>

inc/function.php函数库用的使用我就一个一个的说到了,下面开始走正路:

我看这个东西有3部分比较合理就用了3部分了,呵呵,so创建了

1、inc/header.php :

 

 



=$szd_title?>






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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template