# Index. php (as the mainstream development language) & lt; html & gt; & lt; head & gt; & lt; title & gt; Forum & lt;/title & gt; & lt; metahttp-equivContent-Typecontenttext/html; charsetgb2312 & gt; & lt;/head & gt; & lt; fr ## index. php (as the mainstream development language)
Forum
<Body bgcolor = "# FFFFFF"> <BR> </body>
# Left. php (as the mainstream development language)
$ Fp = fopen ("file/counter.txt", "r ");
$ Counter = fgets ($ fp, 8 );
Fclose ($ fp );
$ Counter = $ counter + 1;
$ Fp = fopen ("file/counter.txt", "w ");
Fputs ($ fp, $ counter );
Fclose ($ fp );
Require ("config. inc. php (as the mainstream development language )");
$ SQL = "select * from boardinfo ";
$ SQL _result = MySQL (the best combination with PHP) _ query ($ SQL );
$ SQL _row = MySQL (the best combination with PHP) _ fetch_array ($ SQL _result );
?>
Layout list
| |
| (As the mainstream development language) "target =" main "> register a user |
| --------- |
Do{Echo"
";Echo"
| (As the mainstream development language )? Board = $ SQL _row [name] "target =" main "> $ SQL _row [chinesename] | ";Echo"
";} While ($ SQL _row = MySQL (the best combination with PHP) _ fetch_array ($ SQL _result ));?>
| --------- |
|