php和html的區(qū)別 html怎么用php連接數(shù)據(jù)庫?
html怎么用php連接數(shù)據(jù)庫?使用PHP連接數(shù)據(jù)庫:MySQL database$conn=MySQL connect(“l(fā)ocalhost”、“root”、“111111”)//括號內(nèi)的分別代表主
html怎么用php連接數(shù)據(jù)庫?
使用PHP連接數(shù)據(jù)庫:
MySQL database
$conn=MySQL connect(“l(fā)ocalhost”、“root”、“111111”)//括號內(nèi)的分別代表主機(jī)、用戶名和密碼
MySQL select DB(“database name”、$conn)//select library
MySQL Query(“set names GBK”,$conn)//設(shè)置字符集