|
|
 |
Posted: Wed Feb 11, 2004 4:47 pm |
|
|
|
| Changed it, looks like the same thing though. |
|
|
|
|
 | |  |
Posted: Wed Feb 11, 2004 4:50 pm |
|
|
|
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. |
|
|
|
|
 | |  |
Posted: Wed Feb 11, 2004 6:05 pm |
|
|
|
maybe database_name has to be enquoted like the others, not using ` , but '?  |
|
|
|
|
Posted: Wed Feb 11, 2004 6:41 pm |
|
|
|
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"); |
|
|
|
|
 | |  |
Posted: Wed Feb 11, 2004 9:39 pm |
|
|
| 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 |
|
|
|
|
Posted: Wed Feb 11, 2004 10:12 pm |
|
|
|
now im getting this error?
Fatal error: Call to undefined function: html_entity_decode() in /home/ahlfs/public_html/index.php on line 7 |
|
|
|
|
Posted: Wed Feb 11, 2004 10:15 pm |
|
|
|
| Could (you) shadow or daniel take a look at my server if PM you the info, it might be easyer to figure it out. |
|
|
|
|
Posted: Wed Feb 11, 2004 10:50 pm |
|
|
|
if you can look at it and fix it up for me there is $15.00 paypal cash for ya in it  |
|
|
|
|
Posted: Thu Feb 12, 2004 11:19 am |
|
|
| 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 |
|
|
|
|
Posted: Thu Feb 12, 2004 4:42 pm |
|
|
|
| got that part fixed thanks, Now i just got to figure out this blank /Randim/ and /rusers/ pages. |
|
|
|
|
|
|