Database file configuration of php development message board

Connecting to the database

Writing ideas

QQ截图20161130140327.png

Create a new file conn.php to set up the connection database file

root fill in the user name of mysql 123456789 can fill in your own database password

or die("Database link error"); Make a judgment

mysql_select_db("bbs", $conn);
Fill in the name of the table in your own database at the position of bbs

The file requires a database connection. You only need to call the conn.php file to use it, which is very convenient.

Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!