Php-new PHP, but still won't connect to the database, there is a small problem

Source: Internet
Author: User
Tags php database
How can I create a database? It can be completed at login, that is, the message function cannot be implemented! This is the user's registration certificate (img.ask.csdn.netupload201512101449758884_477017.png )! Response) & quot; message board back to. php database

How can I create a database? It can be completed at login, that is, the message function cannot be implemented

 
   Message Board

Return

Connected!
"; $ Selected = mysql_select_db (" center "); // if ($ selected) // echo" selected!
"; Mysql_query (" set names 'utf8' "); $ insert_account = $ _ SESSION ['account']; $ insert_pwd = $ _ SESSION ['password']; echo $ insert_account; // echo $ _ POST [comment]; if ($ _ SESSION ['check'] = 1) {if (! Empty ($ _ POST [comment]) {$ SQL = "INSERT INTO comment (account, comment, time) VALUES ('$ insert_account ', '$ _ POST [comment]', '$ printtime') "; mysql_query ($ SQL) or die (mysql_error ()); $ _ SESSION ['check'] = 0;} else echo'

Welcome to the message board ';} $ insert_account?>

">

Leave a message

<? Php // echo readfile ("webdictionary.txt");?>

Your submitted message:

Total ". $ pages. "page (". $ page. "/". $ pages. ")"; for ($ I = 1; $ I <$ page; $ I ++) echo "[". $ I. "]"; echo "[". $ page. "]"; for ($ I = $ page + 1; $ I <= $ pages; $ I ++) echo "[". $ I. "]"; echo"




";} Echo"";?>

Message

Release Date

Message User

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.