Home TheRandomizer Forum Index Log in Register FAQ Search
TheRandomizer Forum Index » Installation Help » What am i doing wrong? Goto page Previous  1, 2, 3  Next
Post new topic  Reply to topic View previous topic :: View next topic 
PostPosted: Wed Feb 11, 2004 4:47 pm Reply with quote
Guest




Changed it, looks like the same thing though.
PostPosted: Wed Feb 11, 2004 4:50 pm Reply with quote
Guest




mySQL

Using our mySQL database tools you can easily create and maintain your online databases.


Databases ahlfs_ahlfs
Users in ahlfs_ahlfs
ahlfs_pkergohan

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:ahlfs_ahlfs:localhost","ahlfs_pkergohan","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "ahlfs_pkergohan", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("ahlfs_ahlfs");


User: ahlfs_pkergohan Db: ahlfs_ahlfs
Db:

--------------------------------------------------------------------------------
Users
ahlfs_pkergohan

UserName:
Password:


--------------------------------------------------------------------------------
Access Hosts
localhost

<?
/*This is the mysql connection parameters.
For maximum security,you can move this file outside the
web tree .
In this case,please edit the path from the line 100 of config.php.*/
$dbhost = 'localhost';
$database_name = `ahlfs_ahlfs`;
$dbusername = 'ahlfs_pkergohan';
$dbpasswd = '*******';
$connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd")
or die ("Couldn't connect to server.");
$db = mysql_select_db("$database_name", $connection)
or die("Couldn't select database.");
?>

blank page or if i got to http://www.randompayments.org/ i get Couldn't select database.
PostPosted: Wed Feb 11, 2004 6:05 pm Reply with quote
Guest




maybe database_name has to be enquoted like the others, not using ` , but '? Cool
PostPosted: Wed Feb 11, 2004 6:41 pm Reply with quote
Guest




Example?

Do i need to change any of this?

$dbhost = 'localhost';
$database_name = `ahlfs_randomizer`;
$dbusername = 'ahlfs_pkergohan';
$dbpasswd = '*******';
$connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd")
or die ("Couldn't connect to server.");
$db = mysql_select_db("$database_name", $connection)
or die("Couldn't select database.");
?>

This is what it says

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:ahlfs_randomizer:localhost","ahlfs_pkergohan","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "ahlfs_pkergohan", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("ahlfs_randomizer");
PostPosted: Wed Feb 11, 2004 9:39 pm Reply with quote
shadow
Addict
Joined: 16 Oct 2003
Posts: 171
Location: Virgin Islands




You still have ` instead of ' around the database name

Use these lines

$dbhost = 'localhost';
$database_name = 'ahlfs_randomizer';
$dbusername = 'ahlfs_pkergohan';
$dbpasswd = '*******';

But of course enter you password

Shadow
PostPosted: Wed Feb 11, 2004 10:12 pm Reply with quote
Guest




now im getting this error?

Fatal error: Call to undefined function: html_entity_decode() in /home/ahlfs/public_html/index.php on line 7
PostPosted: Wed Feb 11, 2004 10:15 pm Reply with quote
Guest




Could (you) shadow or daniel take a look at my server if PM you the info, it might be easyer to figure it out.
PostPosted: Wed Feb 11, 2004 10:50 pm Reply with quote
Guest




if you can look at it and fix it up for me there is $15.00 paypal cash for ya in it Wink
PostPosted: Thu Feb 12, 2004 11:19 am Reply with quote
shadow
Addict
Joined: 16 Oct 2003
Posts: 171
Location: Virgin Islands




I'm in and out all day so I won't have time to sit and look at it today but if you still have a problem tomorrow I might have time. Right now it looks like you are running an older version of PHP

What you'll need to do:
-go to lib\stdlib.php;
-add the following code just before "?>"
function html_entity_decode ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip ($trans_tbl); return strtr ($string, $trans_tbl); }

This should solve this problem.

Shadow
PostPosted: Thu Feb 12, 2004 4:42 pm Reply with quote
Guest




got that part fixed thanks, Now i just got to figure out this blank /Randim/ and /rusers/ pages.
 What am i doing wrong? 
 TheRandomizer Forum Index » Installation Help
All times are GMT  
Page 2 of 3  
Goto page Previous  1, 2, 3  Next
  
  
 Post new topic  Reply to topic  


Powered by phpBB© 2001-2006 phpBB Group |Randomizer Script | Web Hosting | phpBB Skin by Vjacheslav Trushkin