divinequran Posted December 20, 2008 Share Posted December 20, 2008 Hi, Is there is any option to create mysql data base automatically without using cpanel to create database, I use the following code but it does not create's Db on website. mysql_query("CREATE DATABASE fig",$connection); It creates DB in local but not in website? Link to comment https://forums.phpfreaks.com/topic/137821-cpanel-db/ Share on other sites More sharing options...
corbin Posted December 20, 2008 Share Posted December 20, 2008 If you're on shared hosting, you probably don't have access to create databases through other means. Link to comment https://forums.phpfreaks.com/topic/137821-cpanel-db/#findComment-720308 Share on other sites More sharing options...
PFMaBiSmAd Posted December 20, 2008 Share Posted December 20, 2008 What does mysql_error give as the reason you cannot create a database? Link to comment https://forums.phpfreaks.com/topic/137821-cpanel-db/#findComment-720311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.