[HELP] between the CO private to connect using Database. [v5165]

04/05/2012 13:34 sex13#1
using this guides: [Only registered and activated users can see links. Click Here To Register...] it works successfully, but my questions are..

1. How can i connect the CO server to database, like using xampp, appserver, postgresql etc. most i have read they using appserver, but the tutorial is incomplete.

2. Secondly, how can connect between the webserver(register page) to database of the CO?

3. Can use free domain in order to run the server( what i mean is i will make a register page there directly to my database)?

may be you can solve or link any existed tutorial of it.
sharing is loving, if you can solve this everybody can solve there problem too somehow.

04/05/2012 19:25 ×Holo#2
#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?
[Only registered and activated users can see links. Click Here To Register...] it!
04/06/2012 06:33 sex13#3
can you provide informative details, little confuse, everytime i run the CO server it does not having interaction with the database,