Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Fiesta Online
You last visited: Today at 23:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Register Page Database Connection Error

Discussion on Register Page Database Connection Error within the Fiesta Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
Unhappy Register Page Database Connection Error





i did followed the tutorial and the message at the top continue appearing with issues !!!
brunalima is offline  
Old 11/19/2020, 10:49   #2
 
elite*gold: 0
Join Date: Jun 2012
Posts: 161
Received Thanks: 33
the correct data entered in the php?
Desponia is offline  
Old 11/19/2020, 11:21   #3
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
yes so it wont connect idk why
brunalima is offline  
Old 11/23/2020, 17:29   #4
 
Amanecer's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 114
Received Thanks: 90
Maybe the inserted data doesn't match your table? There are probably some required columns that aren't being filled. Check the code or screenshot the INSERT statement in the source + your Account table (richt click > Design).
Amanecer is offline  
Old 11/23/2020, 23:13   #5
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
here



i did changed system and register page if its works ! and anything works
brunalima is offline  
Old 11/24/2020, 11:58   #6
 
Amanecer's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 114
Received Thanks: 90
I see you're using the Register I released. It's currently missing the sUserIP column so replace:

$sth = $dbh->prepare('INSERT INTO tUser (sUserID, sUserPW) VALUES (?, ?)');
$sth->bindValue(1, $_POST['uid'], PDO::PARAM_STR);
$sth->bindValue(2, md5($_POST['upw']), PDO::PARAM_STR);

with:

$sth = $dbh->prepare('INSERT INTO tUser (sUserID, sUserPW, sUserIP) VALUES (?, ?, ?)');
$sth->bindValue(1, $_POST['uid'], PDO::PARAM_STR);
$sth->bindValue(2, md5($_POST['upw']), PDO::PARAM_STR);
$sth->bindValue(3, $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR);
Amanecer is offline  
Old 11/24/2020, 12:11   #7
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
what file from the folders i need to edit ????
i did not found the file to edit with these config above !




that i need to edit?
brunalima is offline  
Old 11/24/2020, 12:15   #8
 
Amanecer's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 114
Received Thanks: 90
It should be index. Could you post full source so I can further assist you?
Amanecer is offline  
Old 11/24/2020, 14:37   #9
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
i will send you the private message
Check if the message has been sent for you!

if you do not receive the message here the link with the file



the key i will send for u
brunalima is offline  
Old 11/25/2020, 10:31   #10
 
Amanecer's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 114
Received Thanks: 90
The link you've sent isn't the same Register as the screenshot in the first post? Please check htdocs/www and upload again!
Amanecer is offline  
Old 11/25/2020, 21:01   #11
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
i did sent for you again i guess its correctly!!
brunalima is offline  
Old 11/25/2020, 22:14   #12
 
Amanecer's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 114
Received Thanks: 90
Quote:
Originally Posted by Amanecer View Post
I see you're using the Register I released. It's currently missing the sUserIP column so replace:

$sth = $dbh->prepare('INSERT INTO tUser (sUserID, sUserPW) VALUES (?, ?)');
$sth->bindValue(1, $_POST['uid'], PDO::PARAM_STR);
$sth->bindValue(2, md5($_POST['upw']), PDO::PARAM_STR);

with:

$sth = $dbh->prepare('INSERT INTO tUser (sUserID, sUserPW, sUserIP) VALUES (?, ?, ?)');
$sth->bindValue(1, $_POST['uid'], PDO::PARAM_STR);
$sth->bindValue(2, md5($_POST['upw']), PDO::PARAM_STR);
$sth->bindValue(3, $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR);
Now you just have to do it as I previously said here. And of course define the Database in config.php (or index.php if you're using the single file version).
Amanecer is offline  
Old 11/26/2020, 00:09   #13
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0
i did so continues with database error





brunalima is offline  
Old 11/26/2020, 15:20   #14
 
Amanecer's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 114
Received Thanks: 90
Change

$error = 'Database connect error!';

to

$error = $e->getMessage;

Try again and send the output.
Amanecer is offline  
Old 11/27/2020, 03:27   #15
 
elite*gold: 0
Join Date: Nov 2020
Posts: 23
Received Thanks: 0


i guess its new error

and the password from the Account uses Md5 hash and do not normal password !!
brunalima is offline  
Reply


Similar Threads Similar Threads
NosDis Backup - Database,Source and Register Page
08/26/2018 - Nostale - 5 Replies
https://uploads.tapatalk-cdn.com/20180118/a0c16e2d ec9f711535e429f204c33dc6.jpg https://media.discordapp.net/attachments/40756529 7373937666/411851591511965697/Immagine.png DOWNLOAD:https://hostr.co/j0F9Dlh6uirc Download Last table update:https://hostr.co/B2ATdOIWUKRW Source Based on NosTale4All Source
ERROR: Connection failed. Host 'Mcncc.com' is blocked because of many connection erro
04/10/2010 - Metin2 Private Server - 8 Replies
Hab ein Problem mit meinem DynDns Server nach einiger Zeit kommt bei der DB und Regi immer olgendes "ERROR: Connection failed. Host 'Mcncc.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'" kann mir jemand sagen woran das liegt?



All times are GMT +1. The time now is 23:39.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.