Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration
- This example describes using PHP to connect to a MySQL Database on a Linux hosting account.
- <?php
- //Connect To Database
- $hostname='forumpepo.db.8074409.hostedresource.com';
- $username='forumpepo';
- $password='your password';
- $dbname='forumpepo';
- $usertable='your_tablename';
- $yourfield = 'your_field';
- mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
- mysql_select_db($dbname);
- $query = 'SELECT * FROM ' . $usertable;
- $result = mysql_query($query);
- if($result) {
- while($row = mysql_fetch_array($result)){
- $name = $row[$yourfield];
- echo 'Name: ' . $name;
- }
- }
- ?>
- For additional information on how to setup your connection string using PHP, please refer to the following help resource references.
- Connecting to a MySQL Database on Your Linux Hosting Account Using PHP
- Connecting to MySQL Using PHP
- MySQL Database Information
- Status:SetupHost Name:forumpepo.db.8074409.hostedresource.comDatabase Name:forumpepoDatabase Version:5.0Description:forumpepoUser Name:forumpepoRead-Only User Name:sedimalko
- moq config.php
- <?php
- // phpBB 3.0.x auto-generated configuration file
- // Do not change anything in this file!
- $dbms = 'mysql';
- $dbhost = 'forumpepo.db.8074409.hostedresource.com';
- $dbport = '';
- $dbname = 'forumpepo';
- $dbuser = 'forumpepo';
- $dbpasswd = 'KTT55am2!';
- $table_prefix = 'forumpepo';
- $acm_type = 'file';
- $load_extensions = '';
- @define('PHPBB_INSTALLED', true);
- // @define('DEBUG', true);
- // @define('DEBUG_EXTRA', true);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement