Please verify you are human

[Guide]How to Program a Register Page (For MySql) - Page 2
  Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 02:47

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

Advertisement



[Guide]How to Program a Register Page (For MySql)

Discussion on [Guide]How to Program a Register Page (For MySql) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 03/05/2011, 07:41   #16
 
stealarcher's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
Quote:
Originally Posted by Wikipedia
PHP: Hypertext Preprocessor (a recursive acronym, originally personal home page) is a general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as a standalone interpreter on most operating systems and computing platforms.
wait what did that say again?
stealarcher is offline  
Thanks
1 User
Old 03/05/2011, 07:43   #17
 
Arco.'s Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 335
Received Thanks: 170
Well ****, I been beat.
Arco. is offline  
Old 03/05/2011, 07:45   #18
 
stealarcher's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
lol, it can also be used in some software as well, doesnt necessarily HAVE to be a website.
stealarcher is offline  
Old 11/18/2011, 01:05   #19
 
elite*gold: 0
Join Date: Nov 2011
Posts: 91
Received Thanks: 2
hey, i think i went wrong somewhere: i got the php stuff in a file, and i got the html stuff at my site, but i still dont really have the php linked to my site. how can i do this?
BeatEmUp is offline  
Old 11/19/2011, 05:25   #20
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
Quote:
Originally Posted by BeatEmUp View Post
hey, i think i went wrong somewhere: i got the php stuff in a file, and i got the html stuff at my site, but i still dont really have the php linked to my site. how can i do this?
what are u lost on?
PHP Code:
<form method="post" action=""> 

Username: <input type="text" name="username" value="" /><br/> 
Password: <input type="password" name="pass" value="" /><br/> 
Repeat Password: <input type="password" name="pass2" value=""/><br/> 
<input type="submit" name="submit" value="Submit" /> 

</form> 

<?php 
$conn 
mysql_connect("localhost""root""mysqlpass"); 
$db mysql_select_db("coproj"); 

if(isset(
$_POST['submit'])) 

     if(isset(
$_POST['pass']) && $_POST['pass'] != ""
     { 
          if(
$_POST['pass'] == $_POST['pass2']) 
          { 
               if(
strlen($_POST['pass']) > && strlen($_POST['pass']) < 32
               { 
                    
$sql "INSERT INTO `tablename` (Table1, Table2) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"
                    
$sql mysql_query($sql); 
                    echo 
"Registered Successfully"
               } else { 
                    die(
"Your password must be between 3 and 32 characters."); 
               } 
          } else { 
               die(
"Your passwords do not match."); 
          } 
     } else { 
          die(
"Please enter in a password."); 
     } 

?>
Is everything you need to have then you just throw it into a .txt rename it to say reg.php then put it where you have ur apache installed.. being through xampp or Appserv.
BioHazarxPaul is offline  
Old 11/20/2011, 16:51   #21
 
Eragon-sx's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 35
Received Thanks: 48
lol
Eragon-sx is offline  
Old 12/03/2011, 17:12   #22
 
elite*gold: 0
Join Date: Aug 2011
Posts: 7
Received Thanks: 0
i need help when i open it it says what it says on the text document lol
wheniwinyoulose is offline  
Old 12/05/2011, 23:27   #23
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
Quote:
Originally Posted by wheniwinyoulose View Post
i need help when i open it it says what it says on the text document lol
make sure that the file extenstion is .php when u save the file

E.G: index.php
coreymills is offline  
Old 12/06/2011, 00:56   #24
 
12k's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
Also make sure that ur folder options isnt hiding extensions for known file types.
12k is offline  
Thanks
1 User
Old 01/24/2012, 15:09   #25
 
elite*gold: 0
Join Date: Oct 2008
Posts: 28
Received Thanks: 0
Hey Guys i'm getting this error : Warning: mysql_connect() [function.mysql-connect]: [2002] Uma tentativa de conexão falhou porque o componente conectado nã (trying to connect via tcp://localhost:3306) in C:\AppServ\www\index.php on line 11

Warning: mysql_connect() [function.mysql-connect]: Uma tentativa de conexão falhou porque o componente conectado não respondeu corretamente após um período de tempo ou a conexão estabelecida falhou porque o host conectado não respondeu. in C:\AppServ\www\index.php on line 11

Fatal error: Maximum execution time of 60 seconds exceeded in C:\AppServ\www\index.php on line 11




I need some help please thank you.
rickgol is offline  
Old 01/24/2012, 16:01   #26
 
12k's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
The information your using for mysql_connectis wrong. Most likely ur password.
12k is offline  
Old 01/25/2012, 16:47   #27
 
elite*gold: 0
Join Date: Oct 2008
Posts: 28
Received Thanks: 0
Nope it's all correct look



My Password and name is right but i'm getting this error ;/

rickgol is offline  
Old 01/26/2012, 03:15   #28
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
id have to look at everything something isnt right, advice try to reinstall appserv, or use xampp, appserv is kinda ****..
BioHazarxPaul is offline  
Old 01/26/2012, 03:45   #29
 
12k's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
Try using 127.0.0.1 instead of localhost. I dont speak the other language, so if u could translate that it would be great.
12k is offline  
Reply


Similar Threads Similar Threads
[Guide] Register Page without CAPTCHA
08/04/2012 - EO PServer Guides & Releases - 37 Replies
First of all, If you're thinking this is leeched or w.e, get out.. lol this is for the people that don't know how to. Anything that needs to be edited will be in a Different Color. Editing Host: Things need: http://www.elitepvpers.com/forum/eo-pserver-hostin g/227620-release-register-page-without-captcha.htm l TextPad - the text editor for Windows (Optional) Color Chart : http://www.myprofilepimp.com/images/color_chart.gi f
[HELP] MySql Register Page
08/04/2010 - CO2 Private Server - 2 Replies
Hey guys I have a small problem with my MySql register page. everytime I load the page the Account and Password box are already filled in with the username Admin and a password. My question is.... Does anyone know how to fix this? It also happens in flatfile sources as well! Any help would be much appreciated :) Thanks in advance
MySQL error for voting script & register page
04/27/2010 - Dekaron Private Server - 2 Replies
well this just happen it was working fine then it just went bad then the register page messed up to idk why it did this it was working fine for days then it just does this
[QUESTION]Making PhP working with MySQL, so i can make register page?
11/14/2009 - CO2 Private Server - 2 Replies
Title says all. How do i make PhP Scripts work with MySQL, so i can make a register page. Im totally noob at PhP. Only read some things for it on the net lol. Any mod, close this thread when i have got answers.



All times are GMT +1. The time now is 02:47.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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