Mysql-based Forum (5)

Source: Internet
Author: User
# Manage_read.php (as the mainstream development language) & lt ;? Php (as the mainstream development language) require (func. php (as the mainstream development language); if (check_admin_password () & #123; & nbsp; & #36; board & #36; jl_foru # manage_read.php (as the mainstream development language)
Require ("func. php (as the mainstream development language )");
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 (the best combination with PHP) _ query ($ SQL );
$ Sum = MySQL (the best combination with PHP) _ num_rows ($ SQL _result );
$ SQL _row = MySQL (the best combination with PHP) _ 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 (the best combination with PHP) _ query ($ SQL );
If ($ sum <> 0 ){
?>


<? Php (as the mainstream development language) 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.