Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
thank you. On Mon, Feb 9, 2009 at 1:14 PM, Shawn McKenzie wrote: > R B wrote: > > I´m looking that i have another problem: > > > > I´m making a software to install in any server. > > > > The software needs a database, so i want to create a script install.php > > to create the database when thi

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
R B wrote: > I´m looking that i have another problem: > > I´m making a software to install in any server. > > The software needs a database, so i want to create a script install.php > to create the database when this script is executed. > > At this point of the instalation, i don´t know none of

[PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
Shawn McKenzie wrote: > Shawn McKenzie wrote: >> R B wrote: >>> Hello, >>> >>> When i create a mysql database with the next command: >>> >>> mysql_query("CREATE DATABASE my_db",$con) >>> >>> In the server is created the database, but usually the name is created with >>> a prefix. >>> >>> In this ca

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
I´m looking that i have another problem: I´m making a software to install in any server. The software needs a database, so i want to create a script install.php to create the database when this script is executed. At this point of the instalation, i don´t know none of the users that are defined

[PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
Shawn McKenzie wrote: > R B wrote: >> Hello, >> >> When i create a mysql database with the next command: >> >> mysql_query("CREATE DATABASE my_db",$con) >> >> In the server is created the database, but usually the name is created with >> a prefix. >> >> In this case: someuser_my_db >> >> How can i

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
I´m creating a software that use a database, and i want to include a install.php file to install the database of the software. I can create the database in the install.php file with mysql_query("CREATE DATABASE my_db",$con) But when is created, i don´t know the complete name of the database, beca

[PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
R B wrote: > Hello, > > When i create a mysql database with the next command: > > mysql_query("CREATE DATABASE my_db",$con) > > In the server is created the database, but usually the name is created with > a prefix. > > In this case: someuser_my_db > > How can i detect with PHP the complete na