fazlionline Posted May 28, 2009 Share Posted May 28, 2009 Hi allIs this possible to create a database in mysql with the help of PHP?If yes, what is the syntax?Thanks Link to comment Share on other sites More sharing options...
Synook Posted May 28, 2009 Share Posted May 28, 2009 mysql_query("CREATE DATABASE whatever"); However, many hosts don't give you CREATE DATABASE privileges - they would rather you used their control panels. Link to comment Share on other sites More sharing options...
vreugde Posted May 28, 2009 Share Posted May 28, 2009 If you want to create a database u have to make it in the controlpanel.But what u can do is create a database and connect to that database with PHP and create a table in it.This possible because u have connection with the database Link to comment Share on other sites More sharing options...
smerny Posted May 28, 2009 Share Posted May 28, 2009 I create/edit database/tables with "MySQL Databases" and phpMyAdmin... and just use php to enter/edit/remove data.Go here http://www.w3schools.com/php/php_mysql_intro.asp and click next, its a tutorial on creating and working with mysql/php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.