How do I create a database if it doesn't exist, using PHP?

后端 未结 2 1000
迷失自我
迷失自我 2021-01-13 08:47

How do I create a database if it doesn\'t exist, using PHP?

2条回答
  •  执笔经年
    2021-01-13 09:23

    Presuming you're talking about a MySQL database - you want to use mysql_query and mysql_select_db.

    Note that mysql_create_db is deprecated.

    
    

提交回复
热议问题