| View previous topic :: View next topic |
| Author |
Message |
deleted user 111213 Grandmaster Cheater
Reputation: 0
Joined: 09 Nov 2007 Posts: 714
|
Posted: Mon Nov 10, 2008 10:31 am Post subject: if anyone has it... |
|
|
| could someone give me the code for a decent mysql and registration page. i have searched. i have tried many other tutorials out there but none work for me. always comes up with mysql_connect errors. i cant do it. please could someone help me. if they do they get my rep tomorrow. (i already gave my rep to iagu today.)
|
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Mon Nov 10, 2008 10:54 am Post subject: |
|
|
You need to set up the mysql.
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
deleted user 111213 Grandmaster Cheater
Reputation: 0
Joined: 09 Nov 2007 Posts: 714
|
Posted: Mon Nov 10, 2008 11:00 am Post subject: |
|
|
| i do have a mysql database on my website.
|
|
| Back to top |
|
 |
sloppy Expert Cheater
Reputation: 0
Joined: 17 Aug 2008 Posts: 123
|
Posted: Mon Nov 10, 2008 1:45 pm Post subject: |
|
|
| The code you've been using isn't the problem.. it all boils down to providing the correct mysql_connect() details. Who is hosting your website/database? Did you bother to email their support and ask for help?
|
|
| Back to top |
|
 |
deleted user 111213 Grandmaster Cheater
Reputation: 0
Joined: 09 Nov 2007 Posts: 714
|
Posted: Mon Nov 10, 2008 2:27 pm Post subject: |
|
|
| the hosting is freetzi.com. my mysql database is 115886, i emailed them and no response.
|
|
| Back to top |
|
 |
sloppy Expert Cheater
Reputation: 0
Joined: 17 Aug 2008 Posts: 123
|
Posted: Mon Nov 10, 2008 4:43 pm Post subject: |
|
|
I created an account and after a bit of mucking around it seems to work fine. Firstly make sure you've done this,
| Quote: | Enable your MySQL DataBase via Account Manager ---> use 'Create DB' button.
ATTENTION!!! MySQL password is equal with account password. If you change your account password, don't forget to update configuration file for your php script as mysql password will be changed too. |
The following page will look something like this,
| Quote: | The MySQL database has been successfully created for your account.
MySQL DataBase name: 101011
MySQL DataBase login username: 101011
MySQL DataBase login password: The same as for FTP and account manager
MySQL DataBase hostname: localhost |
Use those details for your connection,
| Code: | $dbhost = 'localhost';
$dbuser = '101011';
$dbpass = 'mypass';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = '101011';
mysql_select_db($dbname); |
In your case, replace '101011' with '115886' and 'mypass' with your account password. You should be able to get your registration pages working correctly if you update those values.
|
|
| Back to top |
|
 |
deleted user 111213 Grandmaster Cheater
Reputation: 0
Joined: 09 Nov 2007 Posts: 714
|
Posted: Tue Nov 11, 2008 1:47 am Post subject: |
|
|
| fair enough. thanks. i +rep u.
|
|
| Back to top |
|
 |
|