|
Comments for: zeev19990518
| Message # 1029354: |
|
Date: 06/29/05 09:25
By: SorLOVE Subject: RE: Reg PHP's Usage and future Hi, I tray to make a page for registre acount at game(Mu-online), I get an script in php and I dont know. <HTML> <BODY> <?PHP $user = ""; //Your SQL User $pass = ""; //Your SQL Users Password $host = ""; //Only Change this if you put this script on another server $db = "MuOnline"; //Dont Change this unless you know u have to $Max = "1000"; //Maximum number of players allowed to register $Max2 = $Max - 1; //Leave this one alone mssql_connect($host, $user, $pass) or die("Couldn't connect to SQL Server on $host"); mssql_select_db($db) or die("Couldn't open database $db"); $result = mssql_query("SELECT * FROM MEMB_INFO"); $num_reg = mssql_num_rows($result); $num_aval = $Max - $num_reg; echo "There are currently " . $num_reg . " users registered and there is room for " . $num_aval . " users to register <BR>"; if ($num_reg < $Max) { echo "You are allowed to register<BR>"; ?> <FORM METHOD='POST' ACTION='./reg2.php'> Username: <BR> <INPUT TYPE='text' name='name' /> <BR> Password: <BR> <INPUT TYPE='password' name='pass1' /> <BR> Re-Enter Password: <br> <INPUT TYPE='password' name='pass2' /> <INPUT TYPE='hidden' NAME="registered' VALUE='1'> <BR> <INPUT type='submit' /> </FORM> <?PHP mssql_close(); } elseif ($num_reg > $Max2) { echo "You are not allowed to register<BR>"; echo "Please try again tomorrow"; } </body> </html> Help me :) 10x bye |
Previous Message | Next Message |
| Comments: | ||
| this site can decode zended PHP | alexe | 11/17/05 08:14 |
| RE: Reg PHP's Usage and future | SorLOVE | 06/29/05 09:25 |
| Reg PHP's Usage and future | Kashyap Joshi | 09/23/02 09:12 |
| Compile or encode PHP scripts? | D. Gobera | 08/23/02 16:28 |
| RE: php_any.dll | José Lúcio da Cruz | 08/13/02 00:52 |
| zend decompiler | Test | 07/29/02 06:54 |
| php_any.dll | odeide | 07/20/02 06:28 |
| Exec() doesnt work under Sun Solaris8 | FAtih Ustundag | 06/21/02 07:12 |
| order_fulfillment module | Amrita Patnaik | 05/24/02 07:38 |
| RE: Zend/php4 compile | hammer995 | 05/09/02 16:50 |
| Send me everything include in PHP | Pei Huang Yu | 05/02/02 11:26 |
| php first script | zakreg | 04/18/02 14:47 |
| authentication with mailservers | venkat | 03/18/02 04:54 |
| MSSQL with PHP | Rangi Robinson | 03/04/02 07:49 |
| RE: Exec() doesnt work under Windows !!! SUX | SkyMarshal | 03/03/02 16:39 |
| How to retrive a value from a querystring | nagesh | 11/06/01 04:46 |
| Zend/php4 compile | Aleksandr Wilansky | 09/16/01 06:36 |
| RE: Exec() doesnt work under Windows !!! SUX | Bruno | 08/16/01 11:09 |
| OCI Function cannot load !!!!! | Kawelah Wehhhh | 07/29/01 19:59 |
| PHP4 compilation error | Harish | 04/12/01 00:39 |
| zend is way expensive... | James | 03/21/01 11:10 |
| RE: I cant get PHP4 to work on my Win/Apache Serv | Art Mosher | 03/12/01 10:26 |
| RE: I cant get PHP4 to work on my Win/Apache Serv | vlad | 03/10/01 08:15 |
| RE: I cant get PHP4 to work on my Win/Apache Serv | Nop | 12/18/00 11:05 |
| I cant get PHP4 to work on my Win/Apache Serv | Charles M | 12/04/00 13:23 |
| Exec() doesnt work under Windows !!! SUX | Martin D | 11/25/00 21:05 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


