Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** The name of the database */
- define('DB_NAME', 'football_league');
- /** MySQL database username */
- define('DB_USER', 'root');
- /** MySQL database password */
- define('DB_PASSWORD', '');
- /** MySQL hostname */
- define('DB_HOST', 'localhost');
- /** Full Url */
- define('FULL_URL', 'http://test.apstech.com.vn/upload/');
- //$FULL_URL = 'http://test.apstech.com.vn/upload/';
- function startMySQLConnection() {
- $conn = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Error connecting to mysql');
- mysql_select_db(DB_NAME);
- return $conn;
- }
- function closeMySQLConnection($conn) {
- mysql_close($conn);
- }
- function prefixFullUrl($row, $logofield) {
- if ($row[$logofield] != "" || $row[$logofield] != null) {
- return FULL_URL . $row[$logofield];
- }
- }
- $home = '';
- $member_home_page = $home . '/?p=index';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement