Jump to content

sorry still having a bit of trouble what else i need to do


valwardon

Recommended Posts

this is the error message

 

Error: No database selected with query select

 

here is where i defined my data base.

 

<?PHP

 

//-------------------------------------------------------------------------------

// CONFIGURATION OPTIONS

//-------------------------------------------------------------------------------

// Your domain name (include www. if used BUT NOT http://)

$domain = "www.freshsitetraffic.com"; 

 

// Your MySQL server address (usually 'localhost')

$server  = "localhost";

 

// Your MySQL database username

$db_user = "****";

 

// Your MySQL database password

$db_pass = "****";

 

// Your MySQL database name

$database = "****";

 

// The currency that your affiliates will be paid in

$currency = "US Dollars";

 

// Your email address

$emailinfo = "****";

 

// Your sites name

$yoursitename = "Fresh Site Traffic";

 

// language of control panel (only eng.php so far)

$language = "eng.php";

 

// cookie expiration in days. If 0, it is "unlimited" (set to 10 yrs)

$cookieExpiration = 0;

 

// cookie path, should be always '/'

$cookiePath = '/';

 

// you can set it to '.yourdomain.com' if you wnt cookie

// to be available also on subdomains

$cookieDomain = '';

 

// whether to display debug message during sale registration

// activate it by setting it to true

$debugMessage = false;

 

 

//-------------------------------------------------------------------------------

// DO NOT MODIFY ANYTHING BELOW THIS POINT UNLESS

// YOU KNOW WHAT YOU ARE DOING

//-------------------------------------------------------------------------------

$clientdate            = (date ("Y-m-d")); // Do Not Touch

$clienttime      = (date ("H:i:s")); // Do Not Touch

$clientbrowser   = getenv("HTTP_USER_AGENT"); // Do Not Touch

$clientip      = $HTTP_SERVER_VARS['REMOTE_ADDR']; // Do Not Touch

$clienturl      = getenv("HTTP_REFERER"); // Do Not Touch

 

// helper functions

function aff_check_security()

{

  if(!isset($_SESSION['aff_valid_user']) || $_SESSION['aff_valid_user']=='')

    return false;

  else

    return true;

}

 

function aff_admin_check_security()

{

  if(!isset($_SESSION['aff_valid_admin']) || $_SESSION['aff_valid_admin']=='')

    return false;

  else

    return true;

}

 

function aff_redirect($url, $time = 0)

{

  echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"$time;URL=$url\">";

  echo "If you will be not redirected within few seconds click <a class=leftLink href=$url>".here.'[/url]';

}

?>

as far as getting it to exicute im not sure how to do that part.on my account maintance screen this message is there next to my data bass right under my username

 

Connection Strings

Perl $dbh = DBI->connect("DBI:mysql:f****:localhost","****","<PASSWORD HERE>");

PHP $dbh=mysql_connect ("localhost", "****", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());

mysql_select_db ("****"); 

 

here is the full page

 

MySQL Account Maintenance

 

 

 

--------------------------------------------------------------------------------

 

Current Databases:

**** 

Users in dmname

**** (Privileges: ALL PRIVILEGES)

 

Connection Strings

Perl $dbh = DBI->connect("DBI:mysql:****:localhost","****","<PASSWORD HERE>");

PHP $dbh=mysql_connect ("localhost", "****", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());

mysql_select_db ("****"); 

 

 

 

 

New Database:   

 

 

--------------------------------------------------------------------------------

 

Current Users:

****

 

 

 

Username:   

Password:   

 

 

--------------------------------------------------------------------------------

 

Add Users To Your Databases:

 

User: **** Database: ****

Privileges:

ALL or  SELECT  CREATE

   INSERT  ALTER

   UPDATE  DROP

   DELETE  LOCK TABLES

   INDEX  REFERENCES

   CREATE TEMPORARY TABLES

 

 

 

--------------------------------------------------------------------------------

 

Access Hosts:

localhost

 

 

 

Host (% wildcard is allowed):   

 

 

--------------------------------------------------------------------------------

 

phpMyAdmin

You can use phpMyAdmin to administer your MySQL databases in a web based environment.

 

 

 

 

 

[ Go Back ]

 

mod-edit: user's information removed and replaced with **** for security

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.