Mysql-based Forum (5) _ PHP Tutorial

Source: Internet
Author: User
Tags sendmsg
Mysql-based Forum (5 ). # Manage_read.php? Phprequire (func. php); if (check_admin_password () {$ board $ jl_forum [board]; switch ($ job) {casesetgood: set_good ($ jl_forum [board], $ uid ); $ work1; break; case ## manage_read.php
Require ("func. php ");
If (check_admin_password ()){
$ Board = $ jl_forum [board];
Switch ($ job ){
Case "setgood ":
Set_good ($ jl_forum [board], $ uid );
$ Work = 1;
Break;
Case "setnogood ":
Set_no_good ($ jl_forum [board], $ uid );
$ Work = 1;
Break;
Case "delete ":
Del_doc ($ jl_forum [board], $ uid );
$ Work = 1;
Break;
}
If (! $ Word ){
Add_one_hit ($ board, $ id );
}
$ SQL = "select * from $ board where id = $ id ";
$ SQL _result = mysql_query ($ SQL );
$ Sum = mysql_num_rows ($ SQL _result );
$ SQL _row = mysql_fetch_array ($ SQL _result );
$ Title = $ SQL _row [title];
$ Writer = $ SQL _row [writer];
$ Cont = $ SQL _row [cont];
$ Writetime = $ SQL _row [writetime];
$ Hits = $ SQL _row [hits];
$ Good = $ SQL _row [good];
$ Rootid = $ SQL _row [id];
$ Fromip = $ SQL _row [fromip];
$ SQL = "select * from $ board where slaveid = $ id ";
$ SQL _result = mysql_query ($ SQL );
If ($ sum <> 0 ){
?>


<? Php echo $ title;?>


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.