Creating Database Dynamically with PHP

mirsadkm

Registered
Jul 29, 2021
1
0
0
Doha
cPanel Access Level
Root Administrator
Hi Guys, I want to create database dynamically, it works with localhost but it doesn't work in live. please tell me, how can i create database dynamically with php
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,810
895
313
cPanel Access Level
Root Administrator
Hey there! I'd recommend reviewing our API documentation. The first link shows how to create a database:


and this one is how to create the user: