SiteMinder / Webhosting
The Computer Merchant, Ltd
US-MA-North Quincy

Justtechjobs.com Post A Job | Post A Resume

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 PHPalexe11/17/05 08:14
RE: Reg PHP's Usage and futureSorLOVE06/29/05 09:25
Reg PHP's Usage and futureKashyap Joshi09/23/02 09:12
Compile or encode PHP scripts?D. Gobera08/23/02 16:28
RE: php_any.dllJosé Lúcio da Cruz08/13/02 00:52
zend decompilerTest07/29/02 06:54
php_any.dllodeide07/20/02 06:28
Exec() doesnt work under Sun Solaris8FAtih Ustundag06/21/02 07:12
order_fulfillment moduleAmrita Patnaik05/24/02 07:38
RE: Zend/php4 compilehammer99505/09/02 16:50
Send me everything include in PHPPei Huang Yu05/02/02 11:26
php first scriptzakreg04/18/02 14:47
authentication with mailserversvenkat03/18/02 04:54
MSSQL with PHPRangi Robinson03/04/02 07:49
RE: Exec() doesnt work under Windows !!! SUXSkyMarshal03/03/02 16:39
How to retrive a value from a querystringnagesh11/06/01 04:46
Zend/php4 compileAleksandr Wilansky09/16/01 06:36
RE: Exec() doesnt work under Windows !!! SUXBruno08/16/01 11:09
OCI Function cannot load !!!!!Kawelah Wehhhh07/29/01 19:59
PHP4 compilation errorHarish04/12/01 00:39
zend is way expensive...James03/21/01 11:10
RE: I cant get PHP4 to work on my Win/Apache ServArt Mosher03/12/01 10:26
RE: I cant get PHP4 to work on my Win/Apache Servvlad03/10/01 08:15
RE: I cant get PHP4 to work on my Win/Apache ServNop12/18/00 11:05
I cant get PHP4 to work on my Win/Apache ServCharles M12/04/00 13:23
Exec() doesnt work under Windows !!! SUXMartin D11/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.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.