#wrong section
Quote:
|
1. How can i connect the CO server to database
|
- I guess you already have the database, you will search where's the config of your source, put the host name and password and the database name.
Quote:
|
how can connect between the webserver(register page) to database of the CO?
|
Using PHP
Code:
<?
$username="username";
$password="password";
$database="your_database";
$first=$_POST['first'];
$last=$_POST['last'];
$phone=$_POST['phone'];
$mobile=$_POST['mobile'];
$fax=$_POST['fax'];
$email=$_POST['email'];
$web=$_POST['web'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web')";
mysql_query($query);
mysql_close();
?>
That's an example for connecting PHP to MySQL
Quote:
|
Can use free domain in order to run the server?
|

it!