# Post. php & lt ;? Phprequire (& quot; config. inc. php & quot;); $ SQL & quot; select * fromboardinfowherename $ board & quot; $ SQL _resultMySQL_query ($ SQL); $ SQL _rowmysql_fetch_a # post. php
Require ("config. inc. php ");
$ SQL = "select * from boardinfo where name = '$ board '";
$ SQL _result = MySQL_query ($ SQL );
$ SQL _row = mysql_fetch_array ($ SQL _result );
?>
Publish new posts
Posts
|
(YouMust be registeredA new topic can be published later. Otherwise, you can only view the topic.
If you have not yet registered, click here to go to the registration page) |
Your post will be posted in Forum |
# Query. php
Require ("func. php ");
$ SQL = "select * from boardinfo ";
$ SQL _result = mysql_query ($ SQL );
?>
Main
Forum posts query
|
|
Forum information
|
|
# Query_list.php
Require ("func. php ");
If (! Empty ($ query_str )){
If (! Is_board_exits ($ board )){
$ Board = "computer ";
}
If ($ title ){
$ Submit = "title ";
}
Elseif ($ cont ){
$ Submit = "cont ";
}
Elseif ($ writer ){
$ Submit = "writer ";
}
Else {
$ Submit = "title ";
}
$ SQL = "select * from $ board where ($ submit like '% $ query_str % ')";
$ Temp = mysql_query ($ SQL );
$ Sum = mysql_num_rows ($ temp );
If ($ sum! = 0 ){
$ SQL = "select * from boardinfo where name = '$ board '";
$ SQL _result = mysql_query ($ SQL );
$ SQL _row = mysql_fetch_array ($ SQL _result );
$ Chinesename = $ SQL _row [chinesename];
Setcookie ("jl_forum [chinesename]", $ chinesename );
$ SQL = "select name from user where slaveboard = '$ board '";
$ SQL _result = mysql_query ($ SQL );
?>
List