Hi,
I would like to make a script that creates a serie of databases. This is what I thought could do the job...
$mysql_access = mysql_connect("localhost", "user", "pass");
$count = 1;
while ($count < 5) {
$query = "CREATE database_" . $count;
mysql_query($query, $mysql_access) or die (mysql(error));
echo "$query<br>";
$count++;
}
I want it to create database_1 -> database_4 (initially), but gives error. How do I...
I would like to make a script that creates a serie of databases. This is what I thought could do the job...
$mysql_access = mysql_connect("localhost", "user", "pass");
$count = 1;
while ($count < 5) {
$query = "CREATE database_" . $count;
mysql_query($query, $mysql_access) or die (mysql(error));
echo "$query<br>";
$count++;
}
I want it to create database_1 -> database_4 (initially), but gives error. How do I...