http://hanxiujun9.blog.163.com/blog/static/9193231201162821248516/ 推荐: http://www.w3school.com.cn/php/func_mysql_connect.asp