Allods Developers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

Server "acdben" PHP Script for automatic DB creation 1

No permission to download

Сорок два

Administrator
Staff member
Admin
Content Creator
Guide Author
Seller
Premium
ADC Launcher Users
Сорок два submitted a new resource:

"acdben" PHP Script for automatic DB creation - acdben

You not oblige to download the package, it's a simple PHP script that I paste here :


PHP:
<?php
$link = mysql_connect('localhost','root','root');
if (!$link) {
    die('connection error:' . mysql_error());
}

$sql = 'CREATE DATABASE a1_masterserver_rc_4_0_02 CHARACTER SET utf8 COLLATE utf8_general_ci ;';
if (mysql_query($sql, $link)) {
    echo "base a1_masterserver_rc_4_0_02 successfully created!\n";
} else {
    echo 'error when creating a database:' . mysql_error() . "\n";
}

$sql...

Read more about this resource...
 
Back
Top