Hello,
I don't have much time, so i will just make a little explanation.
This is a simple PHP Script for Register Pages, I aint releasing the Form because i havent done it, i just did the PHP Script to reply to another thread and then i tought it was gonna be useful for other peoples.
First, it uses PDO for MySql, it requires a higher version of PHP and needs to be enabled if you use Wampserver. Wont work on AppServ. Usually Host Providers already have this enabled so you wont need to worry, otherwise, if it doesnt work, you should ask them to enable PDO for MySql on your Apache Server.
Second, i havent done the Errors handle, i have made the functions, but if you need it to show messages, you gotta do it yourself.
The functions, Configurations and Handle are on the same file, so you gotta split them if you want.
If you need a guide for how to use PDO, i recommend this . Its not hard and i recommend who use mysql_* to start learning PDO. I think its so cool.
FAQ:
Why do i you use bindValue if you can save n lines by doing different?
So newbies can see +- how it works and it will become easier for them to edit. With a query where ill set 20 values, it will take 20 lines, but at least newbies will get the touch, but yes, it can be done in 1 line.
Well, i wont rewrite everything, i gotta go.
Later i Edit with something else.
I am accepting suggestions for improvements.
Edited, thanks
I have made some changes, thank you.
By the way, i keep some double checks,
The email and user made in 2 different queries and the Negative Number
The CheckIfNegative ive made because i am developing a PHP game and on the beta i didnt made this check, just the int one,
so 1 guy used a negative number so he could increase the amount of items he has.
It isnt to return true or false, it will get that number and make it positive, then better keep it, may be useful to other peoples.
The Validate Part i've based on a old script, one of my first tests, so its the "hard" way haha, better saying, the noob way.
I am not a Pro, improvements are welcome. Thanks
Edited, thanks
I have made some changes, thank you.
By the way, i keep some double checks,
The email and user made in 2 different queries and the Negative Number
The CheckIfNegative ive made because i am developing a PHP game and on the beta i didnt made this check, just the int one,
so 1 guy used a negative number so he could increase the amount of items he has.
It isnt to return true or false, it will get that number and make it positive, then better keep it, may be useful to other peoples.
The Validate Part i've based on a old script, one of my first tests, so its the "hard" way haha, better saying, the noob way.
I am not a Pro, improvements are welcome. Thanks
I haven't tested the code but you should get the idea, plus this same function can be extended to create an insert, update and delete query as well
Well, ill take the idea for me, and now its good to have on the Thread, but it's better we dont deliver it completely done, peoples need to learn. And thanks, nice to see new structures
[HELP] Registration Script 8.1 12/18/2013 - Rappelz Private Server - 3 Replies Hello,
I would like to have a script for the registration of players Rappelz Server 8.1
That's 4 days I research and test different script elitepvpers but without success.
Someone can help me to create a very basic script with Wamp to not always create myself through sql server.
This script not working
<?php
Registration script 03/14/2012 - Rappelz Private Server - 0 Replies Could anybody help me with the Registration script?
:)
registration-script 11/18/2011 - Rappelz Private Server - 0 Replies registration-script
help ):
http://im15.gulfup.com/2011-11-18/1321617604911.j pg
Registration script 07/08/2011 - Rappelz - 5 Replies Hi all
i want to ask any guide help to make Registration page ?
please help from professional In this topic
thanks all :)