A very simple PHP message boards. On the SAE.

Source: Internet
Author: User
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>  
 
  
    
 
 
 
      671coder ' s message:


      while ($r = Mysql_fetch_array ($result)) {$idx = $r ["MId"]; $user = $r ["Mname"]; $text = $r ["MText"];? >

    • :

Closedb ();? >

What do you think! It feels so cool!



Database words Presumably we all know how to design it?!


  • Related Article

    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.