A very simple PHP message boards .... Built on the SAE ...
I've set up a resume page on the SAE: interested in Access to http://671coder.sinaapp.com/
In doing the following a simple message board, the card took me a long time, although completely useless PHP. But finally reluctantly wrote ...
The main page HTML is written like this:
Contact Me
This block can is hidden and only shown in a popup.
Verification code function is not yet implemented ...
PHP in the background is written like this:
"; $mysql = new Saemysql (); $judge = true;for ($i = 0; $i <10; $i + +) {if (Strpos ($name, substr ($m _notchar, $i, 1)) | | Strpos ($message, substr ($m _notchar, $i, 1))) $judge = false;} if ($mysql->errno () = 0) {die ("Error:". $mysql->errmsg ());} else if (! $judge) {?>
runSql ($sql);? >
closedb ();? >
And then finally the message board is written like this:
<title>My messages</title>
Closedb ();? >
What do you think! It feels so cool!
Database words Presumably we all know how to design it?!