root/releases/0.1.2a/units/db/function_connect.php

Revision 2, 308 bytes (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Vaguely useful database global variables
4         global $db_connection;
5         global $db;
6     
7     // Establish a connection to the server
8         $db_connection = @mysql_pconnect(db_server, db_user, db_pass)
9             or die(mysql_error());
10     
11     // Select the correct database
12         $db = mysql_select_db(db_name);
13
14 ?>
Note: See TracBrowser for help on using the browser.